function settings_tray_entity_type_build

Same name and namespace in other branches
  1. 9 core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
  2. 10 core/modules/settings_tray/settings_tray.module \settings_tray_entity_type_build()
  3. 11.x 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

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.