public function CopyrightFooter::blockSubmit in Copyright Footer 2.x
Same name and namespace in other branches
- 8 src/Plugin/Block/CopyrightFooter.php \Drupal\copyright_footer\Plugin\Block\CopyrightFooter::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ CopyrightFooter.php, line 104 - Contains \Drupal\copyright_footer\Plugin\Block\CopyrightFooter.
Class
- CopyrightFooter
- Copyright Footer module for Block.
Namespace
Drupal\copyright_footer\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) : void {
$this->configuration['organization_name'] = $form_state
->getValue('organization_name');
$this->configuration['organization_url'] = $form_state
->getValue('organization_url');
$this->configuration['year_origin'] = $form_state
->getValue('year_origin');
$this->configuration['year_to_date'] = $form_state
->getValue('year_to_date');
$this->configuration['version'] = $form_state
->getValue('version');
$this->configuration['version_url'] = $form_state
->getValue('version_url');
}