public function VarbaseContentOverview::blockSubmit in Varbase Total Control Dashboard 8
Same name and namespace in other branches
- 8.6 src/Plugin/Block/VarbaseContentOverview.php \Drupal\varbase_total_control\Plugin\Block\VarbaseContentOverview::blockSubmit()
- 8.5 src/Plugin/Block/VarbaseContentOverview.php \Drupal\varbase_total_control\Plugin\Block\VarbaseContentOverview::blockSubmit()
- 9.0.x src/Plugin/Block/VarbaseContentOverview.php \Drupal\varbase_total_control\Plugin\Block\VarbaseContentOverview::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/ VarbaseContentOverview.php, line 163
Class
- VarbaseContentOverview
- Provides a 'Varbase Content Overview'.
Namespace
Drupal\varbase_total_control\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
parent::blockSubmit($form, $form_state);
$values = $form_state
->getValues();
$this->configuration['varbase_total_control_types_overview'] = $values['varbase_total_control_types_overview'];
$this->configuration['varbase_total_control_comments_overview'] = $values['varbase_total_control_comments_overview'];
$this->configuration['varbase_total_control_spam_overview'] = $values['varbase_total_control_spam_overview'];
}