You are here

public function ReadOnlyFormEvent::__construct in Configuration Read-only mode 8

Constructs a new ReadOnlyFormEvent object.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

File

src/ReadOnlyFormEvent.php, line 35

Class

ReadOnlyFormEvent
Readonly form event.

Namespace

Drupal\config_readonly

Code

public function __construct(FormStateInterface $form_state) {
  $this->readOnlyForm = FALSE;
  $this->formState = $form_state;
}