You are here

public function ContentRoleManager::__construct in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
  2. 8 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
  3. 8.2 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
  4. 8.3 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()

ContentRoleManager constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

modules/lightning_roles/src/ContentRoleManager.php, line 35

Class

ContentRoleManager
A service for managing the configuration and deployment of content roles.

Namespace

Drupal\lightning_roles

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->configFactory = $config_factory;
  $this->nodeTypeStorage = $entity_type_manager
    ->getStorage('node_type');
}