You are here

public function PathProcessorEntityResourceBC::__construct in Drupal 8

Creates a new PathProcessorEntityResourceBC instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

core/modules/rest/src/PathProcessor/PathProcessorEntityResourceBC.php, line 27

Class

PathProcessorEntityResourceBC
Path processor to maintain BC for entity REST resource URLs from Drupal 8.0.

Namespace

Drupal\rest\PathProcessor

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}