function layout_builder_entity_presave in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/layout_builder.module \layout_builder_entity_presave()
Implements hook_entity_presave().
File
- core/
modules/ layout_builder/ layout_builder.module, line 202 - Provides hook implementations for Layout Builder.
Code
function layout_builder_entity_presave(EntityInterface $entity) {
if (\Drupal::moduleHandler()
->moduleExists('block_content')) {
/** @var \Drupal\layout_builder\InlineBlockEntityOperations $entity_operations */
$entity_operations = \Drupal::classResolver(InlineBlockEntityOperations::class);
$entity_operations
->handlePreSave($entity);
}
}