protected static function FixedBlockContent::invalidateBlockPluginCache in Fixed Block Content 8
Invalidates the block plugin cache after changes and deletions.
2 calls to FixedBlockContent::invalidateBlockPluginCache()
- FixedBlockContent::postDelete in src/
Entity/ FixedBlockContent.php - Acts on deleted entities before the delete hook is invoked.
- FixedBlockContent::postSave in src/
Entity/ FixedBlockContent.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ FixedBlockContent.php, line 270
Class
- FixedBlockContent
- Configuration entity for the fixed block content.
Namespace
Drupal\fixed_block_content\EntityCode
protected static function invalidateBlockPluginCache() {
// Invalidate the block cache to update custom block-based derivatives.
\Drupal::service('plugin.manager.block')
->clearCachedDefinitions();
}