function BlockContentBlock::blockSubmit
Same name in other branches
- 9 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::blockSubmit()
- 8.9.x core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::blockSubmit()
- 10 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
-
core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php, line 168
Class
- BlockContentBlock
- Defines a generic block type.
Namespace
Drupal\block_content\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
// Invalidate the block cache to update content block-based derivatives.
$this->configuration['view_mode'] = $form_state->getValue('view_mode');
$this->blockManager
->clearCachedDefinitions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.