You are here

function simple_block_layout_builder_entity_type_alter in Simple Block 8

Implements hook_entity_type_alter().

File

modules/simple_block_layout_builder/simple_block_layout_builder.module, line 14
Hook implementations for 'Simple Block + Layout Builder' module.

Code

function simple_block_layout_builder_entity_type_alter(array &$entity_types) : void {

  /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
  if (isset($entity_types['simple_block'])) {
    $entity_types['simple_block']
      ->setFormClass('layout_builder', EditSimpleBlockInLayoutBuilderForm::class);
  }
}