public function ComponentBlock::blockSubmit in Component blocks 1.x
Same name and namespace in other branches
- 1.0.x src/Plugin/Block/ComponentBlock.php \Drupal\component_blocks\Plugin\Block\ComponentBlock::blockSubmit()
- 1.1.x src/Plugin/Block/ComponentBlock.php \Drupal\component_blocks\Plugin\Block\ComponentBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ ComponentBlock.php, line 446
Class
- ComponentBlock
- Defines a class for a specially shaped block.
Namespace
Drupal\component_blocks\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['variant'] = $form_state
->getValue('variant');
$this->configuration['variables'] = $form_state
->getValue('variables');
$this->configuration['settings'] = $form_state
->getValue('settings');
}