function LayoutBuilderEntityViewDisplay::save
Same name in other branches
- 11.x core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::save()
Overrides ConfigEntityBase::save
File
-
core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 165
Class
- LayoutBuilderEntityViewDisplay
- Provides an entity view display entity that has a layout.
Namespace
Drupal\layout_builder\EntityCode
public function save() : int {
$return = parent::save();
if (!\Drupal::moduleHandler()->moduleExists('layout_builder_expose_all_field_blocks')) {
// Invalidate the block cache in order to regenerate field block
// definitions.
\Drupal::service('plugin.manager.block')->clearCachedDefinitions();
}
return $return;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.