Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityConverter.php

function EntityConverter::__construct

Constructs a new EntityConverter.

Parameters

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

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

See also

https://www.drupal.org/node/2938929

2 calls to EntityConverter::__construct()
AdminPathConfigEntityConverter::__construct in core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php
Constructs a new EntityConverter.
AdminPathConfigEntityConverter::__construct in core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php
Constructs a new EntityConverter.
1 method overrides EntityConverter::__construct()
AdminPathConfigEntityConverter::__construct in core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php
Constructs a new EntityConverter.

File

core/lib/Drupal/Core/ParamConverter/EntityConverter.php, line 107

Class

EntityConverter
Parameter converter for upcasting entity IDs to full objects.

Namespace

Drupal\Core\ParamConverter

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal