function system_entity_type_build
Same name in other branches
- 9 core/modules/system/system.module \system_entity_type_build()
- 10 core/modules/system/system.module \system_entity_type_build()
- 11.x core/modules/system/system.module \system_entity_type_build()
Implements hook_entity_type_build().
File
-
core/
modules/ system/ system.module, line 1369
Code
function system_entity_type_build(array &$entity_types) {
/** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
$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.