function MediaPermissions::create

Same name in other branches
  1. 9 core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()
  2. 10 core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()
  3. 11.x core/modules/media/src/MediaPermissions.php \Drupal\media\MediaPermissions::create()

Overrides ContainerInjectionInterface::create

File

core/modules/media/src/MediaPermissions.php, line 37

Class

MediaPermissions
Provides dynamic permissions for each media type.

Namespace

Drupal\media

Code

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.