You are here

public function PageBlockDisplayVariant::submitConfigurationForm in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 250

Class

PageBlockDisplayVariant
Provides a variant plugin that simply contains blocks.

Namespace

Drupal\page_manager\Plugin\DisplayVariant

Code

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');
  }
}