function SystemHooks::entityTypeBuild
Implements hook_entity_type_build().
Attributes
#[Hook('entity_type_build')]
File
-
core/
modules/ system/ src/ Hook/ SystemHooks.php, line 365
Class
- SystemHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
public function entityTypeBuild(array &$entity_types) : void {
/** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
$entity_types['date_format']->setFormClass('add', 'Drupal\\system\\Form\\DateFormatAddForm')
->setFormClass('edit', 'Drupal\\system\\Form\\DateFormatEditForm')
->setFormClass('delete', 'Drupal\\system\\Form\\DateFormatDeleteForm')
->setListBuilderClass('Drupal\\system\\DateFormatListBuilder')
->setLinkTemplate('edit-form', '/admin/config/regional/date-time/formats/manage/{date_format}')
->setLinkTemplate('delete-form', '/admin/config/regional/date-time/formats/manage/{date_format}/delete')
->setLinkTemplate('collection', '/admin/config/regional/date-time/formats');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.