You are here

public function RelationRepository::__construct in Relation 8.2

Same name and namespace in other branches
  1. 8 src/Entity/RelationRepository.php \Drupal\relation\Entity\RelationRepository::__construct()

Constructs a new RelationRepository.

Parameters

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

\Drupal\Core\Entity\Query\QueryFactory $entity_query: The entity query.

File

src/Entity/RelationRepository.php, line 36

Class

RelationRepository
Provides mechanism for retrieving available relations types.

Namespace

Drupal\relation\Entity

Code

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