function DevelGeneratePermissions::create
Same name in other branches
- 8.x-1.x devel_generate/src/DevelGeneratePermissions.php \Drupal\devel_generate\DevelGeneratePermissions::create()
- 4.x devel_generate/src/DevelGeneratePermissions.php \Drupal\devel_generate\DevelGeneratePermissions::create()
Overrides ContainerInjectionInterface::create
File
-
devel_generate/
src/ DevelGeneratePermissions.php, line 24
Class
- DevelGeneratePermissions
- Provides dynamic permissions of the filter module.
Namespace
Drupal\devel_generateCode
public static function create(ContainerInterface $container) : self {
$instance = new self();
$instance->develGeneratePluginManager = $container->get('plugin.manager.develgenerate');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}