You are here

public function AdminPathConfigEntityConverter::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()
  2. 8 core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()

Constructs a new EntityConverter.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

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

Overrides EntityConverter::__construct

File

core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php, line 57
Contains \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter.

Class

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

Namespace

Drupal\Core\ParamConverter

Code

public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context) {
  parent::__construct($entity_manager);
  $this->configFactory = $config_factory;
  $this->adminContext = $admin_context;
}