{"id":59518,"date":"2023-12-22T10:15:00","date_gmt":"2023-12-22T04:45:00","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=59518"},"modified":"2024-01-02T17:33:07","modified_gmt":"2024-01-02T12:03:07","slug":"actions-plugin-in-drupal-10","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/","title":{"rendered":"Actions Plugin in Drupal 10"},"content":{"rendered":"<h2>Action Plugin Overview<\/h2>\n<p>The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing content, or updating a database record.<\/p>\n<h2>Custom Actions Plugin<\/h2>\n<p>Here, A Drupal action is a functionality that performs a specific action when executed. For example, Archive Node or Make Content Sticky.<\/p>\n<p>Actions use the annotation class <strong>Drupal\\Core\\Annotation\\Action<\/strong>, and extend <strong>Drupal\\Core\\Action\\ActionBase<\/strong> or <strong>Drupal\\Core\\Action\\ConfigurableActionBase<\/strong> (if the action is configurable.)<br \/>\nAction Plugin definition is defined in Plugin Annotation. It has 3 required keys-<\/p>\n<pre>\/**\r\n* Provides an Archive Node Action.\r\n*\r\n* @Action(\r\n*\u00a0 \u00a0id = \"ttn_archive_node\",\r\n*\u00a0 \u00a0label = @Translation(\"Archive Node\"),\r\n*\u00a0 \u00a0type = \"node\",\r\n*\u00a0 \u00a0category = @Translation(\"Custom\")\r\n* )\r\n*\/\r\n<\/pre>\n<p>id \u2013 ID of the Action Plugin<br \/>\nlabel \u2013 Name of the Action Plugin<br \/>\ntype \u2013 Entity type to which the Action Plugin belongs to<br \/>\ncategory \u2013 (optional) Category of the Action Plugin<\/p>\n<h2>Archive Node Action<\/h2>\n<p>This is a simple action which requires no configuration. When it is run, it changes the alias of the node to \/archive\/\/. It also sets the title to have the word `Archive` in the front of it. Finally, it disables the sticky and promoted flags.<\/p>\n<pre>&lt;?php\r\n\r\nnamespace Drupal\\ttn\\Plugin\\Action;\r\n\r\nuse Drupal\\Core\\Action\\ActionBase;\r\nuse Drupal\\Core\\Session\\AccountInterface;\r\nuse Drupal\\Core\\Plugin\\ContainerFactoryPluginInterface;\r\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\r\nuse Drupal\\pathauto\\PathautoState;\r\n\r\n\/**\r\n * Provides an Archive Node Action.\r\n *\r\n * @Action(\r\n *   id = \"ttn_archive_node\",\r\n *   label = @Translation(\"Archive Node\"),\r\n *   type = \"node\",\r\n *   category = @Translation(\"Custom\")\r\n * )\r\n *\/\r\nclass ArchiveNode extends ActionBase implements ContainerFactoryPluginInterface {\r\n\r\n  \/**\r\n   * The Messenger service.\r\n   *\r\n   * @var \\Drupal\\Core\\Messenger\\MessengerInterface\r\n   *\/\r\n  protected $messenger;\r\n\r\n  \/**\r\n   * Logger service.\r\n   *\r\n   * @var \\Drupal\\Core\\Logger\\LoggerChannelFactoryInterface\r\n   *\/\r\n  protected $logger;\r\n\r\n  \/**\r\n   * The path alias manager.\r\n   *\r\n   * @var \\Drupal\\path_alias\\AliasManagerInterface\r\n   *\/\r\n  protected $aliasManager;\r\n\r\n  \/**\r\n   * Language manager for retrieving the default Langcode.\r\n   *\r\n   * @var \\Drupal\\Core\\Language\\LanguageManagerInterface\r\n   *\/\r\n  protected $languageManager;\r\n\r\n  \/**\r\n   * {@inheritdoc}\r\n   *\/\r\n  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {\r\n    $instance = new static($configuration, $plugin_id, $plugin_definition);\r\n    $instance-&gt;logger = $container-&gt;get('logger.factory')-&gt;get('ttn');\r\n    $instance-&gt;messenger = $container-&gt;get('messenger');\r\n    $instance-&gt;aliasManager = $container-&gt;get('path_alias.manager');\r\n    $instance-&gt;languageManager = $container-&gt;get('language_manager');\r\n    return $instance;\r\n  }\r\n\r\n  \/**\r\n   * {@inheritdoc}\r\n   *\/\r\n  public function access($node, AccountInterface $account = NULL, $return_as_object = FALSE) {\r\n    \/** @var \\Drupal\\node\\NodeInterface $node *\/\r\n    $access = $node-&gt;access('update', $account, TRUE)\r\n      -&gt;andIf($node-&gt;title-&gt;access('edit', $account, TRUE));\r\n    return $return_as_object ? $access : $access-&gt;isAllowed();\r\n  }\r\n\r\n   \/**\r\n   * {@inheritdoc}\r\n   *\/\r\n  public function execute($node = NULL) {\r\n\r\n    \/** @var \\Drupal\\node\\NodeInterface $node *\/\r\n\r\n    $language = $this-&gt;languageManager-&gt;getCurrentLanguage()-&gt;getId();\r\n\r\n    $old_alias = $this-&gt;aliasManager-&gt;getAliasByPath('\/node\/' . $node-&gt;id(), $language);\r\n\r\n    $title = $node-&gt;getTitle();\r\n    $date = $node-&gt;created-&gt;value;\r\n    $year = date('Y', $date);\r\n    $new_title = $this-&gt;t('[Archive] | @title', ['@title' =&gt; $title]);\r\n    $node-&gt;setTitle($new_title);\r\n    $node-&gt;setSticky(FALSE);\r\n    $node-&gt;setPromoted(FALSE);\r\n\r\n    $new_alias = '\/archive\/' . $year . $old_alias;\r\n    $node-&gt;set(\"path\", [\r\n      'alias' =&gt; $new_alias,\r\n      'langcode' =&gt; $language,\r\n      'pathauto' =&gt; PathautoState::SKIP,\r\n    ]);\r\n    $node-&gt;save();\r\n    $message = $this-&gt;t('Node with NID : @id Archived.', ['@id' =&gt; $node-&gt;id()]);\r\n    $this-&gt;logger-&gt;notice($message);\r\n    $this-&gt;messenger-&gt;addMessage($message);\r\n  }\r\n\r\n}\r\n<\/pre>\n<p>To get Action Plugin Discoverable, you need to add <strong>system.action.&lt;plugin_id&gt;.yml,<\/strong> which is placed in <strong>config\/install.<br \/>\n<\/strong><br \/>\nThe structure of the .<strong>yml<\/strong> file is shown below:<\/p>\n<pre>langcode: en\r\nstatus: true\r\nid: ttn_archive_node\r\nlabel: 'Archive Node'\r\ntype: node\r\nplugin: ttn_archive_node<\/pre>\n<p>Created Action Plugin can be viewed on the <strong>\/admin\/content page<\/strong>.<\/p>\n<p><img decoding=\"async\" alt=\"Blog image\" src=\"\/blog\/wp-ttn-blog\/uploads\/2024\/01\/238564950-40d4e78a-b0e8-40e1-bd7d-58998fab3168.png\" \/><\/p>\n<h2>Custom Actions Existing Enable Module<\/h2>\n<p>Which is placed in config\/install. Create .install file and use hook_update_N().<\/p>\n<pre>&lt;?php \r\n\/\/ Install config. \r\nfunction ttn_update_9501(&amp;$sandbox){ \r\n  $config_installer = \\Drupal::service('config.installer'); \r\n  $config_installer-&gt;installDefaultConfig('module', 'ttn');\r\n}\r\n\r\nRun update.php\r\n\r\n<\/pre>\n<h2>Conclusion<\/h2>\n<p>In the Actions module, you can create a customized workflow triggered by a specific event. The Actions module provides a user-friendly interface for defining and managing actions. For example, when a user submits a form on your website, you can trigger an action to send an email notification to the site administrator.<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing [&hellip;]<\/p>\n","protected":false},"author":1700,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":290,"footnotes":""},"categories":[3602],"tags":[4862],"class_list":["post-59518","post","type-post","status-publish","format-standard","hentry","category-drupal","tag-drupal"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Radheshyam Kumawat\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Actions Plugin in Drupal 10 | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Actions Plugin in Drupal 10 | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#article\",\"name\":\"Actions Plugin in Drupal 10 | TO THE NEW Blog\",\"headline\":\"Actions Plugin in Drupal 10\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/radheshyam-kumawat\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2024\\\/01\\\/238564950-40d4e78a-b0e8-40e1-bd7d-58998fab3168.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#articleImage\"},\"datePublished\":\"2023-12-22T10:15:00+05:30\",\"dateModified\":\"2024-01-02T17:33:07+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#webpage\"},\"articleSection\":\"Drupal, Drupal\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/#listItem\",\"name\":\"Drupal\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/#listItem\",\"position\":2,\"name\":\"Drupal\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#listItem\",\"name\":\"Actions Plugin in Drupal 10\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#listItem\",\"position\":3,\"name\":\"Actions Plugin in Drupal 10\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/drupal\\\/#listItem\",\"name\":\"Drupal\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/radheshyam-kumawat\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/radheshyam-kumawat\\\/\",\"name\":\"Radheshyam Kumawat\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/48501a45-0da5-41ad-a7bb-1be7a7ba0fe5_3581-Radheshyam-Kumawat-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Radheshyam Kumawat\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/\",\"name\":\"Actions Plugin in Drupal 10 | TO THE NEW Blog\",\"description\":\"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/actions-plugin-in-drupal-10\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/radheshyam-kumawat\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/radheshyam-kumawat\\\/#author\"},\"datePublished\":\"2023-12-22T10:15:00+05:30\",\"dateModified\":\"2024-01-02T17:33:07+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Actions Plugin in Drupal 10 | TO THE NEW Blog","description":"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing","canonical_url":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#article","name":"Actions Plugin in Drupal 10 | TO THE NEW Blog","headline":"Actions Plugin in Drupal 10","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/radheshyam-kumawat\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2024\/01\/238564950-40d4e78a-b0e8-40e1-bd7d-58998fab3168.png","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#articleImage"},"datePublished":"2023-12-22T10:15:00+05:30","dateModified":"2024-01-02T17:33:07+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#webpage"},"articleSection":"Drupal, Drupal"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/#listItem","name":"Drupal"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/#listItem","position":2,"name":"Drupal","item":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#listItem","name":"Actions Plugin in Drupal 10"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#listItem","position":3,"name":"Actions Plugin in Drupal 10","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/#listItem","name":"Drupal"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/radheshyam-kumawat\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/radheshyam-kumawat\/","name":"Radheshyam Kumawat","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/48501a45-0da5-41ad-a7bb-1be7a7ba0fe5_3581-Radheshyam-Kumawat-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Radheshyam Kumawat"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/","name":"Actions Plugin in Drupal 10 | TO THE NEW Blog","description":"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/radheshyam-kumawat\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/radheshyam-kumawat\/#author"},"datePublished":"2023-12-22T10:15:00+05:30","dateModified":"2024-01-02T17:33:07+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Actions Plugin in Drupal 10 | TO THE NEW Blog","og:description":"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing","og:url":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Actions Plugin in Drupal 10 | TO THE NEW Blog","twitter:description":"Action Plugin Overview The Actions module is a core module in Drupal that allows site builders and developers to create automated workflows by defining actions and triggers. In Drupal, actions refer to a set of tasks or operations that can be performed on a site. For example, an action can be sending an email, publishing","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"59518","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e065e5d50fa","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-12-21 10:42:54","updated":"2024-02-29 11:09:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/drupal\/\" title=\"Drupal\">Drupal<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tActions Plugin in Drupal 10\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Drupal","link":"https:\/\/www.tothenew.com\/blog\/category\/drupal\/"},{"label":"Actions Plugin in Drupal 10","link":"https:\/\/www.tothenew.com\/blog\/actions-plugin-in-drupal-10\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1700"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=59518"}],"version-history":[{"count":9,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59518\/revisions"}],"predecessor-version":[{"id":59637,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/59518\/revisions\/59637"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=59518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=59518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=59518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}