You are here

public function RestUIForm::__construct in REST UI 8

Constructs a \Drupal\user\RestForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.

\Drupal\Core\Authentication\AuthenticationCollectorInterface $authentication_collector: The authentication collector.

array $formats: The available serialization formats.

\Drupal\rest\Plugin\Type\ResourcePluginManager $resourcePluginManager: The REST plugin manager.

\Drupal\Core\Entity\EntityStorageInterface $resource_config_storage: The REST resource config storage.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

Overrides ConfigFormBase::__construct

File

src/Form/RestUIForm.php, line 83

Class

RestUIForm
Provides a REST resource configuration form.

Namespace

Drupal\restui\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandler $module_handler, AuthenticationCollectorInterface $authentication_collector, array $formats, ResourcePluginManager $resourcePluginManager, EntityStorageInterface $resource_config_storage, MessengerInterface $messenger) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->authenticationCollector = $authentication_collector;
  $this->formats = $formats;
  $this->resourcePluginManager = $resourcePluginManager;
  $this->resourceConfigStorage = $resource_config_storage;
  $this->messenger = $messenger;
}