function PathProcessorEntityResourceBC::__construct

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.