You are here

public function ExtraFieldComponentType::submitComponentRow in Flexiform 8

Overrides FormComponentTypeBase::submitComponentRow

File

src/Plugin/FormComponentType/ExtraFieldComponentType.php, line 76

Class

ExtraFieldComponentType
Plugin for extra field components.

Namespace

Drupal\flexiform\Plugin\FormComponentType

Code

public function submitComponentRow($component_name, $values, array $form, FormStateInterface $form_state) {
  $options = $this
    ->getFormDisplay()
    ->getComponent($component_name);
  $options['weight'] = $values['weight'];
  $options['region'] = $values['region'];
  return $options;
}