function settings_tray_entity_type_build
Same name in other branches
- 9 core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
- 8.9.x core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
- 10 core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
Implements hook_entity_type_build().
File
-
core/
modules/ settings_tray/ settings_tray.module, line 97
Code
function settings_tray_entity_type_build(array &$entity_types) {
/** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
$entity_types['block']->setFormClass('settings_tray', BlockEntitySettingTrayForm::class)
->setLinkTemplate('settings_tray-form', '/admin/structure/block/manage/{block}/settings-tray');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.