public function ViewsBlockBase::blockSubmit in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::blockSubmit()
- 9 core/modules/views/src/Plugin/Block/ViewsBlockBase.php \Drupal\views\Plugin\Block\ViewsBlockBase::blockSubmit()
File
- core/
modules/ views/ src/ Plugin/ Block/ ViewsBlockBase.php, line 182
Class
- ViewsBlockBase
- Base class for Views block plugins.
Namespace
Drupal\views\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
if (!$form_state
->isValueEmpty('views_label_checkbox')) {
$this->configuration['views_label'] = $form_state
->getValue('views_label');
}
else {
$this->configuration['views_label'] = '';
}
$form_state
->unsetValue('views_label_checkbox');
}