You are here

public function ErlLayout::buildConfigurationForm in Entity Reference with Layout 8

Add a process callback so $form[#parents] are correctly populated.

If we were adding options that did not depend on third party widget settings, using #process would be unnecessary.

Overrides LayoutDefault::buildConfigurationForm

File

modules/erl_layouts/src/Plugin/Layout/ErlLayout.php, line 70

Class

ErlLayout
Layout class with various formatting options for custom ERL layouts.

Namespace

Drupal\erl_layouts\Plugin\Layout

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['#process'] = [
    [
      $this,
      'processConfigurationForm',
    ],
  ];
  return $form;
}