public function ContentRoleManager::__construct in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
- 8 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
- 8.2 modules/lightning_roles/src/ContentRoleManager.php \Drupal\lightning_roles\ContentRoleManager::__construct()
- 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_rolesCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
$this->configFactory = $config_factory;
$this->nodeTypeStorage = $entity_type_manager
->getStorage('node_type');
}