function settings_tray_entity_type_build in Drupal 8
Same name and namespace in other branches
- 9 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 96 - Allows configuring blocks and other configuration from the site front-end.
Code
function settings_tray_entity_type_build(array &$entity_types) {
/* @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
$entity_types['block']
->setFormClass('settings_tray', BlockEntitySettingTrayForm::class)
->setLinkTemplate('settings_tray-form', '/admin/structure/block/manage/{block}/settings-tray');
}