You are here

public function SiteInfoBlock::blockSubmit in Express 8

Adds block type-specific submission handling for the block form.

Note that this method takes the form structure and form state for the full block configuration form as arguments, not just the elements defined in BlockPluginInterface::blockForm().

Parameters

array $form: The form definition array for the full block configuration form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides BlockPluginTrait::blockSubmit

See also

\Drupal\Core\Block\BlockPluginInterface::blockForm()

\Drupal\Core\Block\BlockPluginInterface::blockValidate()

File

modules/custom/express_site_info/src/Plugin/Block/SiteInfoBlock.php, line 70

Class

SiteInfoBlock
Provides the Express Site Info Block.

Namespace

Drupal\express_site_info\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['contact_info'] = $form_state
    ->getValue('express_site_info_contact_info');
}