function AdminPathConfigEntityConverter::__construct

Same name in this branch
  1. main core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
  2. 11.x core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()
  3. 10 core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
  4. 10 core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()
  5. 9 core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
  6. 9 core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()
  7. 8.9.x core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
  8. 8.9.x core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()

Constructs a new EntityConverter.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\Core\Routing\AdminContext $adminContext: The route admin context service.

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

Overrides EntityConverter::__construct

1 call to AdminPathConfigEntityConverter::__construct()
ViewUIConverter::__construct in core/modules/views_ui/src/ParamConverter/ViewUIConverter.php
Constructs a new ViewUIConverter.
1 method overrides AdminPathConfigEntityConverter::__construct()
ViewUIConverter::__construct in core/modules/views_ui/src/ParamConverter/ViewUIConverter.php
Constructs a new ViewUIConverter.

File

core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php, line 40

Class

AdminPathConfigEntityConverter
Makes sure the unmodified ConfigEntity is loaded on admin pages.

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, protected ConfigFactoryInterface $configFactory, protected AdminContext $adminContext, $entity_repository = NULL) {
  parent::__construct($entity_type_manager, $entity_repository);
}

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