public function AdminPathConfigEntityConverter::__construct in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter::__construct()
- 8 core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php \Drupal\Core\ProxyClass\ParamConverter\AdminPathConfigEntityConverter::__construct()
Same name and namespace in other branches
- 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\ParamConverterCode
public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context) {
parent::__construct($entity_manager);
$this->configFactory = $config_factory;
$this->adminContext = $admin_context;
}