You are here

public function RestUIController::__construct in REST UI 8

Constructs a RestUIController object.

Parameters

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

\Symfony\Component\Routing\Generator\UrlGeneratorInterface $url_generator: The URL generator.

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

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

File

src/Controller/RestUIController.php, line 75

Class

RestUIController
Controller routines for REST resources.

Namespace

Drupal\restui\Controller

Code

public function __construct(ResourcePluginManager $resourcePluginManager, UrlGeneratorInterface $url_generator, EntityStorageInterface $resource_config_storage, MessengerInterface $messenger) {
  $this->resourcePluginManager = $resourcePluginManager;
  $this->urlGenerator = $url_generator;
  $this->resourceConfigStorage = $resource_config_storage;
  $this->messenger = $messenger;
}