public function ConfigPagesPermissions::__construct in Config Pages 8.3
Same name and namespace in other branches
- 8.2 src/ConfigPagesPermissions.php \Drupal\config_pages\ConfigPagesPermissions::__construct()
Constructs a new ConfigPagesPermissions instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
ConfigPagesPermissions.php, line 31
Class
- ConfigPagesPermissions
- Provides rest module permissions.
Namespace
Drupal\config_pagesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->storage = $entity_type_manager
->getStorage('config_pages_type');
}