function action_entity_type_build

Same name and namespace in other branches
  1. 9 core/modules/action/action.module \action_entity_type_build()
  2. 8.9.x core/modules/action/action.module \action_entity_type_build()
  3. 10 core/modules/action/action.module \action_entity_type_build()

Implements hook_entity_type_build().

File

core/modules/action/action.module, line 44

Code

function action_entity_type_build(array &$entity_types) {
    
    /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
    $entity_types['action']->setFormClass('add', ActionAddForm::class)
        ->setFormClass('edit', ActionEditForm::class)
        ->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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.