function layout_builder_entity_delete
Same name in other branches
- 8.9.x core/modules/layout_builder/layout_builder.module \layout_builder_entity_delete()
- 10 core/modules/layout_builder/layout_builder.module \layout_builder_entity_delete()
Implements hook_entity_delete().
File
-
core/
modules/ layout_builder/ layout_builder.module, line 206
Code
function layout_builder_entity_delete(EntityInterface $entity) {
if (\Drupal::moduleHandler()->moduleExists('block_content')) {
/** @var \Drupal\layout_builder\InlineBlockEntityOperations $entity_operations */
$entity_operations = \Drupal::classResolver(InlineBlockEntityOperations::class);
$entity_operations->handleEntityDelete($entity);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.