function fixed_block_content_block_content_update in Fixed Block Content 8
File
- ./
fixed_block_content.module, line 87 - Provides permanent custom content blocks.
Code
function fixed_block_content_block_content_update(EntityInterface $entity) {
// Check for any pending update of fixed block default content.
$fbc_to_update =& drupal_static('fixed_block_content_update', []);
$block_id = $entity
->id();
if (isset($fbc_to_update[$block_id])) {
$fbc_to_update[$block_id]
->importDefaultContent();
$fbc_to_update[$block_id]
->save();
unset($fbc_to_update[$block_id]);
}
}