Skip to main content
Appic Softwares Logo - Custom Software and App Development Company
  • AI/ML
  • Services
  • Industries
  • Platform
  • Hire Talent
  • Our Company
  • Blog
Contact Us
Appic Softwares Logo - Custom Software and App Development Company
AI
  • AI Development
  • AI Agent
  • Micro SaaS Development
  • Finish Lovable/Cursor Website
  • AI Consulting
  • Enterprise AI Development
  • AI in Fintech
Generative AI
  • Generative AI Development
  • Generative AI Integration
  • LLM Development
  • Adaptive AI Development
  • Generative AI in Real Estate
ML
  • Machine Learning Development
  • ML Model Engineering
  • ML Ops Consulting
  • ML & Data Science Consulting
Custom App Development
  • Mobile App Development
  • Enterprise Mobile App Development
  • IPhone Mobile App Development
  • Ionic App Development
  • Wearable App Development
  • Android Mobile App Development
  • IoT App Development
Software Development Services
  • Software Development
  • Flutter App Development
  • No-Code / Low-Code
  • Angular App Development
  • FlutterFlow Development Company
  • PWA Development Company
  • Next.Js Development Company
  • Supabase Development Company
  • MVP Development
  • Web Development Company
  • Startup Software Development
Blockchain
  • Blockchain Development Services
  • Blockchain Consulting Services
  • Substrate Development
  • Polygon Blockchain Development
  • Hypeledger Blockchain Development Services
  • Golang Development
  • Cosmos Development
  • Solana Blockchain Development
  • Tezos Development
Web 3
  • Web3 Development
  • Rust Development
Maintenance And Support
  • Maintenance & Support
Integration Services
  • Digital Wallet Integration
  • Custom Chat Integration Service
  • Property Recommendation Engine
  • Real Estate Chatbot
  • Real Estate CRM
Astrology
  • Ready-Made Astrology App Development
  • Astrology API Integration App Development
  • Astrology App Development
  • Temple Management App Development
Finance
  • Finance App Development
  • Trading App Development
  • Insurance App Development
  • Mobile Banking App Development
  • Loan Lending App Development
  • Fintech App Development Company In Saudi Arabia
Education
  • LMS App Development
  • EdTech App Development
Real Estate
  • Real Estate App Development
  • Proptech App Development
  • Floor Plan App Development
  • Commercial Real Estate App Development
  • Real Estate Reporting App Development
  • Property Management App Development
  • Real Estate MLS App Development
  • Virtual Property App Development
Industrial Manufacturing and Recycling
  • Waste Management Software Development
On Demand
  • On Demand App Development
  • Laundry App Development
  • On Demand Home Services App Development
  • Salon App Development
  • Logistic App Development
  • Ticket Booking App Development
  • Media & Entertainment App Development
  • Events App Development
  • Restaurant App Development
  • Agriculture App Development
  • Travel App Development
  • Automotive App Development
  • Dating App Development
  • Car Service App Development
  • AI Skincare App Development
E-Commerce
  • Social Commerce App Development
  • Ecommerce App Development
  • Ecommerce App Development in Saudi Arabia
Pet Care
  • Pet Care App Development
  • Veterinary App Development
  • Pet Food Delivery App Development
  • Pet Tracking App Development
  • Pet Training App Development
  • Pet Social Networking App Development
  • Dog Walker App Development
  • Dog Park Tracker App Development
Health
  • Healthcare Software Development
  • Doctor on Demand App Development
  • Medicine Delivery App Development
  • Fitness App Development
DevOps
  • DevOps Services
  • DevOps Automation Services
  • DevOps Infrastructure Management
Adobe
  • Adobe Commerce Development
  • Adobe Cloud Development
  • Adobe Marketplace
  • Adobe B2B Marketplace
  • Adobe POS
  • Adobe Integration
Salesforce
  • Salesforce Development
  • Salesforce Implementation
  • Salesforce Integration
Microsoft
  • Power BI Development
Pega
  • Pega Development
  • Pega Consulting
Drupal
  • Drupal Development Services
  • Drupal Mobile App Development
  • Drupal Ecommerce Development
  • Drupal Migration & Upgradation
  • Drupal Consulting Company
  • Headless Drupal Development
Hire Developers
  • Hire Developer
  • Hire Software Development Team
  • Cost of Hiring Developers
  • Vetting Process
  • How We Hire
Hire Front-End Developers
  • Hire WeWeb Developer
  • Hire React Developer
  • Hire Flutter Flow Developer
  • Hire React Native Developer
  • Hire Flutter Developer in Saudi Arabia
Hire Back-End Developers
  • Hire Node.js Developer
  • FlutterFlow Firebase
  • GraphQL
  • Rowy
  • BuildShip Developer
Hire CMS Developers
  • Hire Wordpress Developer
  • Hire WooCommerce Developer
  • Hire Drupal Developer
  • PrestaShop
  • Shopify
  • Strapi
  • Hire Strapi Developer
Hire AI Engineers
  • Hire AI Engineers
  • Hire Generative AI Engineers
  • Hire Prompt Engineers
  • Hire AWS Bedrock Developer
Hire Digital Marketing Experts
  • Hire Digital Marketing Expert
  • Hire SEO Experts
  • Hire Digital Marketing For Real Estate
Company Information
  • Portfolio
  • Case Studies
  • Videos
  • About Us
  • Partner with Us
  • Client Testimonials
Blog
Contact Us
Action Plugins in Drupal: Everything You Should Know
Appic Softwares Logo - Custom Software and App Development Company
  • AI/ML
  • Services
  • Industries
  • Platform
  • Hire Talent
  • Our Company
  • Blog
Contact Us
Appic Softwares Logo - Custom Software and App Development Company
AI
  • AI Development
  • AI Agent
  • Micro SaaS Development
  • Finish Lovable/Cursor Website
  • AI Consulting
  • Enterprise AI Development
  • AI in Fintech
Generative AI
  • Generative AI Development
  • Generative AI Integration
  • LLM Development
  • Adaptive AI Development
  • Generative AI in Real Estate
ML
  • Machine Learning Development
  • ML Model Engineering
  • ML Ops Consulting
  • ML & Data Science Consulting
Custom App Development
  • Mobile App Development
  • Enterprise Mobile App Development
  • IPhone Mobile App Development
  • Ionic App Development
  • Wearable App Development
  • Android Mobile App Development
  • IoT App Development
Software Development Services
  • Software Development
  • Flutter App Development
  • No-Code / Low-Code
  • Angular App Development
  • FlutterFlow Development Company
  • PWA Development Company
  • Next.Js Development Company
  • Supabase Development Company
  • MVP Development
  • Web Development Company
  • Startup Software Development
Blockchain
  • Blockchain Development Services
  • Blockchain Consulting Services
  • Substrate Development
  • Polygon Blockchain Development
  • Hypeledger Blockchain Development Services
  • Golang Development
  • Cosmos Development
  • Solana Blockchain Development
  • Tezos Development
Web 3
  • Web3 Development
  • Rust Development
Maintenance And Support
  • Maintenance & Support
Integration Services
  • Digital Wallet Integration
  • Custom Chat Integration Service
  • Property Recommendation Engine
  • Real Estate Chatbot
  • Real Estate CRM
Astrology
  • Ready-Made Astrology App Development
  • Astrology API Integration App Development
  • Astrology App Development
  • Temple Management App Development
Finance
  • Finance App Development
  • Trading App Development
  • Insurance App Development
  • Mobile Banking App Development
  • Loan Lending App Development
  • Fintech App Development Company In Saudi Arabia
Education
  • LMS App Development
  • EdTech App Development
Real Estate
  • Real Estate App Development
  • Proptech App Development
  • Floor Plan App Development
  • Commercial Real Estate App Development
  • Real Estate Reporting App Development
  • Property Management App Development
  • Real Estate MLS App Development
  • Virtual Property App Development
Industrial Manufacturing and Recycling
  • Waste Management Software Development
On Demand
  • On Demand App Development
  • Laundry App Development
  • On Demand Home Services App Development
  • Salon App Development
  • Logistic App Development
  • Ticket Booking App Development
  • Media & Entertainment App Development
  • Events App Development
  • Restaurant App Development
  • Agriculture App Development
  • Travel App Development
  • Automotive App Development
  • Dating App Development
  • Car Service App Development
  • AI Skincare App Development
E-Commerce
  • Social Commerce App Development
  • Ecommerce App Development
  • Ecommerce App Development in Saudi Arabia
Pet Care
  • Pet Care App Development
  • Veterinary App Development
  • Pet Food Delivery App Development
  • Pet Tracking App Development
  • Pet Training App Development
  • Pet Social Networking App Development
  • Dog Walker App Development
  • Dog Park Tracker App Development
Health
  • Healthcare Software Development
  • Doctor on Demand App Development
  • Medicine Delivery App Development
  • Fitness App Development
DevOps
  • DevOps Services
  • DevOps Automation Services
  • DevOps Infrastructure Management
Adobe
  • Adobe Commerce Development
  • Adobe Cloud Development
  • Adobe Marketplace
  • Adobe B2B Marketplace
  • Adobe POS
  • Adobe Integration
Salesforce
  • Salesforce Development
  • Salesforce Implementation
  • Salesforce Integration
Microsoft
  • Power BI Development
Pega
  • Pega Development
  • Pega Consulting
Drupal
  • Drupal Development Services
  • Drupal Mobile App Development
  • Drupal Ecommerce Development
  • Drupal Migration & Upgradation
  • Drupal Consulting Company
  • Headless Drupal Development
Hire Developers
  • Hire Developer
  • Hire Software Development Team
  • Cost of Hiring Developers
  • Vetting Process
  • How We Hire
Hire Front-End Developers
  • Hire WeWeb Developer
  • Hire React Developer
  • Hire Flutter Flow Developer
  • Hire React Native Developer
  • Hire Flutter Developer in Saudi Arabia
Hire Back-End Developers
  • Hire Node.js Developer
  • FlutterFlow Firebase
  • GraphQL
  • Rowy
  • BuildShip Developer
Hire CMS Developers
  • Hire Wordpress Developer
  • Hire WooCommerce Developer
  • Hire Drupal Developer
  • PrestaShop
  • Shopify
  • Strapi
  • Hire Strapi Developer
Hire AI Engineers
  • Hire AI Engineers
  • Hire Generative AI Engineers
  • Hire Prompt Engineers
  • Hire AWS Bedrock Developer
Hire Digital Marketing Experts
  • Hire Digital Marketing Expert
  • Hire SEO Experts
  • Hire Digital Marketing For Real Estate
Company Information
  • Portfolio
  • Case Studies
  • Videos
  • About Us
  • Partner with Us
  • Client Testimonials
Blog
Contact Us
HomeBlogWhat Are Action Plugins In Drupal? Know Everthing Here 2025

What Are Action Plugins In Drupal? Know Everthing Here 2025

Nitesh Jain
Jan 2, 2024
Back to Blog

Table of Contents

Loading headings…

Share this

Action Plugins in Drupal: Full Overview | Appic Softwares

Table of Contents

  • Action Plugin Overview
  • Advantages Of Action Plugin In Drupal
  • Custom Actions Plugin
  • Archive Node Action
  • Custom Actions Existing Enable Module
  • Conclusion

Explore the versatile landscape of Drupal’s Action Plugins in 2024, uncovering their role in extending functionality and promoting code reuse. From seamless integration to scalability, our guide delves into the intricacies of Action Plugins, providing a comprehensive understanding of how they enhance the development process within the dynamic Drupal framework. Let’s delve deeper into the world of Action Plugins and harness their power for an optimized web development experience.

Action Plugin Overview

Drupal’s Actions module is a core module that lets developers and site builders define actions and triggers to build automated workflows. A set of operations or tasks that can be carried out on a site are referred to as actions in Drupal. Sending an email, posting content, or updating a database record are a few examples of actions.

Advantages Of Action Plugin In Drupal

Action plugins in Drupal offer several advantages, enhancing the functionality and flexibility of the platform:

  • Extensibility: Action plugins provide a modular and extensible way to add custom actions to Drupal. Developers can create their own plugins to extend the functionality of the system without altering core code.
  • Reusability: Action plugins follow a reusable design pattern, allowing developers to use the same action in multiple contexts. This promotes code reuse and simplifies the development process.
  • Configurability: Action plugins are highly configurable, enabling site administrators to customize and configure actions through the Drupal administration interface. This flexibility simplifies the management of various actions without re
    quiring extensive coding.
  • Consistency: Action plugins contribute to maintaining consistency in code and user interfaces. By adhering to Drupal’s plugin system, developers can ensure that their custom actions align with Drupal’s coding standards and best practices.
  • Integration with Rules: Action plugins seamlessly integrate with the Rules module in Drupal. This integration allows developers and site builders to create complex workflows and trigger actions based on specific conditions, enhancing the overall functionality of the website.
  • Scalability: As part of Drupal’s plugin system, action plugins contribute to the scalability of the platform. Developers can efficiently scale their applications by creating and utilizing plugins tailored to their specific needs.
  • Community Support: Action plugins benefit from the Drupal community’s collective expertise. The community actively contributes to the development and improvement of plugins, ensuring that they stay current, secure, and aligned with the latest Drupal updates.

Custom Actions Plugin

Activities If the action is configurable, extend Drupal\Core\Action\ActionBase or Drupal\Core\Action\ConfigurableActionBase and use the annotation class Drupal\Core\Annotation\Action.

Plugin Annotation contains the definition of the Action Plugin. There are three necessary keys for it:

/**

* Provides an Archive Node Action.

*

* @Action(

* id = “ttn_archive_node”,

* label = @Translation(“Archive Node”),

* type = “node”,

* category = @Translation(“Custom”)

* )

*/

id: The Action Plugin’s ID; label: The Action Plugin’s name; type: The Entity type that the Action Plugin falls under; – (Optional) Action Plugin Category

Archive Node Action

This is an easy action that doesn’t need to be configured. When it runs, the node’s alias is changed to /archive//. Additionally, it puts the word “Archive” in front of the title. Lastly, it turns off the promoted and sticky flags.

<?php

namespace Drupal\ttn\Plugin\Action;

use Drupal\Core\Action\ActionBase;

use Drupal\Core\Session\AccountInterface;

use Drupal\Core\Plugin\ContainerFactoryPluginInterface;

use Symfony\Component\DependencyInjection\ContainerInterface;

use Drupal\pathauto\PathautoState;

/
**

* Provides an Archive Node Action.

*

* @Action(

* id = “ttn_archive_node”,

* label = @Translation(“Archive Node”),

* type = “node”,

* category = @Translation(“Custom”)

* )

*/

class ArchiveNode extends ActionBase implements ContainerFactoryPluginInterface {

/**

* The Messenger service.

*

* @var \Drupal\Core\Messenger\MessengerInterface

*/

protected $messenger;

/**

* Logger service.

*

* @var \Drupal\Core\Logger\LoggerChannelFactoryInterface

*/

protected $logger;

/**

* The path alias manager.

*


* @var \Drupal\path_alias\AliasManagerInterface

*/

protected $aliasManager;

/**

* Language manager for retrieving the default Langcode.

*

* @var \Drupal\Core\Language\LanguageManagerInterface

*/

protected $languageManager;

/**

* {@inheritdoc}

*/

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {

$instance = new static($configuration, $plugin_id, $plugin_definition);

$instance->logger = $container->get(‘logger.factory’)->get(‘ttn’);

$instance->messenger = $container->get(‘messenger’);

$instance->aliasManager = $container->get(‘path_alias.manager’);

$instance->languageManager = $container->get(‘language_manager’);

return $instance;

}

/**

* {@inheritdoc}

*/

public function access($node, AccountInterface $account = NULL, $return_as_object = FALSE) {

/** @var \Drupal\node\NodeInterface $node */

$access = $node->access(‘update’, $account, TRUE)

->andIf($node->title->access(‘edit’, $account, TRUE));

return $return_as_object ? $access : $access->isAllowed();

}

/**

* {@inheritdoc}

*/

public function execute($node = NULL) {

/** @var \Drupal\node\NodeInterface $node */

$language = $this->languageManager->getCurrentLanguage()->getId();

$old_alias = $this->aliasManager->getAliasByPath(‘/node/’ . $node->id(), $language);

$title = $node->getTitle();

$date = $node->created->value;

$year = date(‘Y’, $date);

$new_title = $this->t(‘[Archive] | @title’, [‘@title’ => $title]);

$node->setTitle($new_title);

$node->setSticky(FALSE);

$node->setPromoted(FALSE);

$new_alias = ‘/archive/’ . $year . $old_alias;

$node->set(“path”, [

‘alias’ => $new_alias,

‘langcode’ => $language,

‘pathauto’ => PathautoState::SKIP,

]);

$node->save();

$message = $this->t(‘Node with NID : @id Archived.’, [‘@id’ => $node->id()]);

$this->logger->notice($message);

$this->messenger->addMessage($message);

}

}

You must add system.action.<plugin_id>.yml, which is located in config/install, to obtain Action Plugin Discoverable.

The following illustrates the.yml file’s structure:

langcode: en

status: true

id: ttn_archive_node

label: ‘Archive Node’

type: node

plugin: ttn_archive_node

The /admin/content page displays the created Action Plugin.

What Are Action Plugins In Drupal? Know Everthing Here 2025

Custom Actions Existing Enable Module

that is kept in the install/config folder. Create a hook_update_N() file and use it.

<?php

// Install config.

function ttn_update_9501(&$sandbox){

$config_installer = \Drupal::service(‘config.installer’);

$config_installer->installDefaultConfig(‘module’, ‘ttn’);

}

Run update.php

Conclusion

Drupal Action Plugins are an effective tool that gives developers an extensible and adaptable way to improve functionality and optimize workflows. Their adaptability and smooth integration add to the Drupal ecosystem’s dynamic and effective web development experience.

We hope that this tutorial has helped you with Drupal Core with Composer. Additionally, Appic Softwares is a company you should check out if you want to hire Drupal developers on a devoted basis.

You can employ our team of knowledgeable Drupal developers to handle your software.

So, what are you waiting for?

Hire them now!

Related Articles

Tarot App Development
7/22/2026

Tarot App Development: Architecture, AI, and the Real Cost of Building a Platform Users Trust

Most tarot app guides talk about decks and animations. This one talks about architecture: why AI should interpret readings instead of generating them, what a five-layer platform actually costs to build, and the seven mistakes that quietly kill most tarot startups before they find product-market fit.
Read More
retail software development
6/25/2026

Retail Software Development: Cost, Process, Features & Complete Guide

Learn everything about Retail Software Development, including costs, process, features, timelines, and how to choose the right development partner. Discover why custom retail software helps businesses improve efficiency, enhance customer experiences, and achieve long-term growth with Appic Softwares.
Read More
Astrology ecommerce app
6/25/2026

Build an Astrology E-commerce App for Gemstones, Reports, and Remedies

Astrology application development is in very high demand already by consumers, as they are exhibiting clear intent to use best astrology apps. Consumers will often purchase stones, request reports or look up remedies based on their predictive astrological readings. However, one reason why so many users fail to have a successful journey with today’s available […]

Read More

Our Drupal Services

Mobile App Development →AI Development Services →Healthcare Software Development →Web Development →

Share Your Ideas Here!

We are all ears!

Get in touch with us

  • Contact info type iconsales@appicsoftwares.com
  • Contact info type icon
    +91 - 8233801424,+91 - 9887354080
  • Contact info type iconlive:appicsoftwares
  • Contact info type icon41/11 Varun Path, New Sanganer Road, Jaipur, Rajasthan
  • Follow Us

Global Presence

Your Partner Everywhere!

India Background

India

41/11 Varun Path, New Sanganer Road, Jaipur, Rajasthan

USA Background

USA

5 Cowboys Way, Suite 300, Frisco, TX 75034, USA

Germany Background

Germany

Magdalenenstraße 34, 80638 München, Germany

Industries

  • All industries
  • Astrology
  • Healthcare
  • Real estate
  • On-demand
  • Travel
  • Education
  • Fitness
  • Pet Care
  • Pet Training

Services

  • iOS App Development
  • Android App Development
  • Software Development
  • Flutter App Development
  • Mobile App Development
  • Ionic development
  • Maintenance & Support

Portfolio

  • Bridl
  • Obdoor
  • Laiqa
  • Rocca Box
  • Plantify
  • City of Cars
  • No-limit-Qr
  • Sync Remote

Platform

  • Artificial Intelligence
  • Blockchain
  • IOT
  • MVP
  • Angular
  • PWA
  • Devops
  • Drupal

About

  • Our company
  • Blog
  • Portfolio
  • Case Studies
  • Let's connect
  • Career

Recognized For Excellence

GoodFirms Award
TopDevelopers.co Award
Clutch Leader Award
DesignRush Award
SelectedFirms Award

© 2026 Appic Softwares. All Rights Reserved. |Privacy Policy