Same name and namespace in other branches
  1. 8.x-2.x src/FieldStateBase.php \Drupal\field_states_ui\FieldStateBase::getConfigurationForForm() 1 comment

File

src/FieldStateBase.php, line 143

Class

FieldStateBase
Provides a base class for field staes.

Namespace

Drupal\field_states_ui

Code

public function getConfigurationForForm() {
    $form = [];
    foreach ($this->configuration as $key => $value) {
        $form[$key] = [
            '#type' => 'hidden',
            '#value' => $value,
        ];
    }
    return $form;
}