function MediaPermissions::create
Same name in other branches
- 8.9.x core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()
- 10 core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()
- 11.x core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()
Overrides ContainerInjectionInterface::create
File
-
core/
modules/ media/ src/ MediaPermissions.php, line 38
Class
- MediaPermissions
- Provides dynamic permissions for each media type.
Namespace
Drupal\mediaCode
public static function create(ContainerInterface $container) {
return new static($container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.