You are here

public function PanelsDisplayVariant::submitConfigurationForm in Panels 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/PanelsDisplayVariant.php \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant::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/PanelsDisplayVariant.php, line 371

Class

PanelsDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels\Plugin\DisplayVariant

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  if ($form_state
    ->hasValue('builder')) {
    $this->configuration['builder'] = $form_state
      ->getValue('builder');
  }
  $this->configuration['page_title'] = $form_state
    ->getValue('page_title');
}