You are here

public function CopyrightFooter::blockSubmit in Copyright Footer 8

Same name and namespace in other branches
  1. 2.x 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\Block

Code

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');
}