public function AdminPathConfigEntityConverter::__construct
public AdminPathConfigEntityConverter::__construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context)
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 51
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!ParamConverter!AdminPathConfigEntityConverter.php/function/AdminPathConfigEntityConverter::__construct/8.1.x