You are here

public function ContentHubEntityRequestHandler::__construct in Acquia Content Hub 8

Creates a new RequestHandler instance.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $resource_plugin_manager: The resource plugin manager.

\Drupal\acquia_contenthub\EntityManager $entity_manager: The Content Hub Entity Manager.

\Symfony\Component\Serializer\SerializerInterface|\Symfony\Component\Serializer\Encoder\DecoderInterface $serializer: The serializer.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

Overrides RequestHandler::__construct

File

src/Controller/ContentHubEntityRequestHandler.php, line 82

Class

ContentHubEntityRequestHandler
Decorates the REST module's RequestHandler.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function __construct(PluginManagerInterface $resource_plugin_manager, EntityManager $entity_manager, SerializerInterface $serializer, RendererInterface $renderer) {
  $this->resourcePluginManager = $resource_plugin_manager;
  $this->entityManager = $entity_manager;
  $this->serializer = $serializer;
  $this->renderer = $renderer;
}