public function CopyrightBlock::blockSubmit in Copyright Block module 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ CopyrightBlock.php, line 105
Class
- CopyrightBlock
- Adds a copyright block.
Namespace
Drupal\copyright_block\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this
->setConfigurationValue('start_year', $form_state
->getValue('start_year'));
$this
->setConfigurationValue('separator', $form_state
->getValue('separator'));
$this
->setConfigurationValue('text', $form_state
->getValue('text'));
}