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\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;
}
doc_Drupal
2016-10-29 08:43:45
Comments
Leave a Comment

Please login to continue.