public function ParagraphsGridLayoutPlugin::submitConfigurationForm

Overrides ParagraphsBehaviorBase::submitConfigurationForm

File

paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsGridLayoutPlugin.php, line 157

Class

ParagraphsGridLayoutPlugin
Provides a way to define grid based layouts.

Namespace

Drupal\paragraphs_collection\Plugin\paragraphs\Behavior

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['paragraph_reference_field'] = $form_state
    ->getValue('paragraph_reference_field');
  $this->configuration['available_grid_layouts'] = array_filter($form_state
    ->getValue('available_grid_layouts'));
}