public function PageBlockDisplayVariant::submitConfigurationForm in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Plugin/DisplayVariant/PageBlockDisplayVariant.php \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant::submitConfigurationForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides VariantBase::submitConfigurationForm
File
- src/
Plugin/ DisplayVariant/ PageBlockDisplayVariant.php, line 241 - Contains \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant.
Class
- PageBlockDisplayVariant
- Provides a variant plugin that simply contains blocks.
Namespace
Drupal\page_manager\Plugin\DisplayVariantCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
if ($form_state
->hasValue('page_title')) {
$this->configuration['page_title'] = $form_state
->getValue('page_title');
}
if ($form_state
->hasValue('uuid')) {
$this->configuration['uuid'] = $form_state
->getValue('uuid');
}
}