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\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; }
Please login to continue.