You are here

public function AdministerTaxonomy::blockSubmit in Total Control Admin Dashboard 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/AdministerTaxonomy.php \Drupal\total_control\Plugin\Block\AdministerTaxonomy::blockSubmit()

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

src/Plugin/Block/AdministerTaxonomy.php, line 272

Class

AdministerTaxonomy
Provides a 'Administer Taxonomy'.

Namespace

Drupal\total_control\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $values = $form_state
    ->getValues();
  $this->configuration['total_control_admin_taxonomy'] = $values['total_control_admin_taxonomy'];
}