You are here

function settings_tray_entity_type_build in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
  2. 9 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 \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');
}