Part of the CRON run hourly we have a Drupal site that needs to sync assets from webdam to the site. There could be 2000 assets that need to be copied down or updated and needs at least 2-3 hours to complete. Since cron exectution time is 3 minutes max is there a way to put it on it;s own schedule to run say once every 12 hours and let it finish? Currently it only syncs as many as it can within the 3 minutes and then stops.
My customer has used Display Suites but wants to migrate to Layout Builder. We use Paragraphs only as a replacement for the D7 field_collection. We used the DS api ds_hook_pre_render_alter() to flatten the paragraphs into #markup which we want to do in LB as well.
Hoping someone can point me in the right direction. I need to remove a tab from the Local Tasks bar. This tab is created via a custom module. Currently I'm using hook_menu_local_tasks_alter() to remove the tab from a user with a specific role. Here's the weird part: if I go to unset the tab without checking for the users role, the tab disappears and the rest of the tabs remain. When I go to check if the user's role is in one of the allowed roles for this tab and it returns false, the ENTIRE tab disappears. Here's my code:
I use plain Drupal 7 and do not use any shell commands. Of course I have access to the filesystem and would like to update the module with a new php of this module. can anyone explain how to proceed?
Error: Class "Drupal\ctools\ParamConverter\TempstoreConverter" not found in Drupal\Component\DependencyInjection\Container->createService() (line 262 of core/lib/Drupal/Component/DependencyInjection/Container.php).
For a customer I created a content_type and failed to create it with the "Display settings" attribute. That is key if this content_type was going to have the Authored on, Authored by field on the node edit form.
I could not find a way to retroactively add that back in so I recreated the content_type and migrated the old content into it. Of course, the node's created timestamp will be on the same date and close to the seconds and if I want to sort they will order by the new creation timestamp, often for the same minute.