public function ResourceRoutes::__construct in Acquia Content Hub 8
Constructs a ResourceRoutes object.
Parameters
\Drupal\acquia_contenthub\EntityManager $entity_manager: The entity manager for Content Hub.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Routing/ ResourceRoutes.php, line 37
Class
- ResourceRoutes
- Defines Acquia Content Hub Dynamic REST routes.
Namespace
Drupal\acquia_contenthub\RoutingCode
public function __construct(EntityManager $entity_manager, EntityTypeManagerInterface $entity_type_manager) {
$this->entityManager = $entity_manager;
$this->entityTypeManager = $entity_type_manager;
}