' . t('About') . ''; $output .= '
' . t('The Actions module provides tasks that can be executed by the site such as unpublishing content, sending email messages, or blocking a user. Other modules can trigger these actions when specific system events happen; for example, when new content is posted or when a user logs in. Modules can also provide additional actions. For more information, see the online documentation for the Actions module.', [':documentation' => 'https://www.drupal.org/documentation/modules/action']) . '
'; $output .= '' . t('There are two types of actions: simple and advanced. Simple actions do not require any additional configuration and are listed here automatically. Advanced actions need to be created and configured before they can be used because they have options that need to be specified; for example, sending an email to a specified address or unpublishing content containing certain words. To create an advanced action, select the action from the drop-down list in the advanced action section below and click the Create button.') . '
'; return $output; case 'action.admin_add': case 'entity.action.edit_form': return t('An advanced action offers additional configuration options which may be filled out below. Changing the Label field is recommended in order to better identify the precise action taking place.'); } } /** * Implements hook_entity_type_build(). */ function action_entity_type_build(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['action'] ->setFormClass('add', 'Drupal\action\ActionAddForm') ->setFormClass('edit', 'Drupal\action\ActionEditForm') ->setFormClass('delete', 'Drupal\action\Form\ActionDeleteForm') ->setListBuilderClass('Drupal\action\ActionListBuilder') ->setLinkTemplate('delete-form', '/admin/config/system/actions/configure/{action}/delete') ->setLinkTemplate('edit-form', '/admin/config/system/actions/configure/{action}') ->setLinkTemplate('collection', '/admin/config/system/actions'); }