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

Breadcrumb

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

function AdminPathConfigEntityConverter::__construct

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()

Constructs a new EntityConverter.

Parameters

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

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

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

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

Overrides EntityConverter::__construct

2 calls to AdminPathConfigEntityConverter::__construct()
ViewUIConverter::__construct in core/modules/views_ui/src/ParamConverter/ViewUIConverter.php
Constructs a new ViewUIConverter.
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 54

Class

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

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context, $entity_repository = NULL) {
    parent::__construct($entity_type_manager, $entity_repository);
    $this->configFactory = $config_factory;
    $this->adminContext = $admin_context;
}

API Navigation

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