function action_entity_type_build in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/action/action.module \action_entity_type_build()
Implements hook_entity_type_build().
File
- core/
modules/ action/ action.module, line 40 - This is the Actions module for executing stored actions.
Code
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');
}