public function FieldBlock::blockSubmit in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- core/
modules/ layout_builder/ src/ Plugin/ Block/ FieldBlock.php, line 337
Class
- FieldBlock
- Provides a block that renders a field from an entity.
Namespace
Drupal\layout_builder\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['formatter'] = $form_state
->getValue('formatter');
}