1 | <?php |
||
13 | class Permissions implements ContainerInjectionInterface { |
||
14 | |||
15 | /** |
||
16 | * The entity browser storage. |
||
17 | * |
||
18 | * @var \Drupal\Core\Entity\EntityStorageInterface |
||
19 | */ |
||
20 | protected $browserStorage; |
||
21 | |||
22 | /** |
||
23 | * Translation manager service. |
||
24 | * |
||
25 | * @var \Drupal\Core\StringTranslation\TranslationManager |
||
26 | */ |
||
27 | protected $translationManager; |
||
28 | |||
29 | /** |
||
30 | * Constructs Permissions object. |
||
31 | * |
||
32 | * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager |
||
33 | * Entity manager service. |
||
34 | * @param \Drupal\Core\StringTranslation\TranslationManager $translation |
||
35 | */ |
||
36 | public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationManager $translation) { |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public static function create(ContainerInterface $container) { |
||
50 | |||
51 | /** |
||
52 | * Dynamically set permissions for entity browsers with routes. |
||
53 | */ |
||
54 | public function permissions() { |
||
70 | |||
71 | } |
||
72 |