\Drupal\strata\Access StrataPermissions

The permissions that cannot be listed in YAML because they depend on the site.

Two sets are generated. Per-realm rollback, because a site that has switched file capture off has no use for a permission to roll files back, and offering one implies it does something. And per-provider storage management, because a site with three buckets configured needs to be able to let someone manage one of them without handing them all three.

Summary

Methods
Properties
Constants
__construct
create
permissions
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
realmPermissions
providerPermissions
providers
No private constants found

Properties

Methods

__construct()

__construct(\Drupal\strata\Storage\StorageProviderManager|null  $providers = null) : mixed

Constructs the generator.

Parameters

\Drupal\strata\Storage\StorageProviderManager|null $providers

Providers contributed by submodules, or NULL when none are.

Returns

mixed —

create()

create(\Symfony\Component\DependencyInjection\ContainerInterface  $container) : self

{@inheritdoc}

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container

Returns

self —

permissions()

permissions() : array<string,array<string,mixed>>

Every generated permission.

Returns

array> —

Permission name keyed to its definition.

realmPermissions()

realmPermissions() : array<string,array<string,mixed>>

One rollback permission per realm.

Ephemeral state is skipped: it is never written back by a restore, so a permission to roll it back would describe an operation that does not exist.

Returns

array> —

Permission name keyed to its definition.

providerPermissions()

providerPermissions() : array<string,array<string,mixed>>

One management permission per configured storage provider.

Returns

array> —

Permission name keyed to its definition.