You are here

public static function ReadOnlyFormSubscriber::getSubscribedEvents in Configuration Read-only mode 8

File

src/EventSubscriber/ReadOnlyFormSubscriber.php, line 88

Class

ReadOnlyFormSubscriber
Check if the given form should be read-only.

Namespace

Drupal\config_readonly\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  $events[ReadOnlyFormEvent::NAME][] = [
    'onFormAlter',
    200,
  ];
  return $events;
}