MediaRevisionAccessCheck
class MediaRevisionAccessCheck implements AccessInterface (View source)
Provides an access checker for media item revisions.
Properties
| protected ContentEntityStorageInterface | $mediaStorage | The media storage. |
|
| protected EntityAccessControlHandlerInterface | $mediaAccess | The media access control handler. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a new MediaRevisionAccessCheck.
access(Route $route, AccountInterface $account, int $media_revision = NULL, MediaInterface $media = NULL)
Checks routing access for the media item revision.
bool
checkAccess(MediaInterface $media, AccountInterface $account, string $op = 'view')
Checks media item revision access.
Details
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a new MediaRevisionAccessCheck.
AccessResultInterface
access(Route $route, AccountInterface $account, int $media_revision = NULL, MediaInterface $media = NULL)
Checks routing access for the media item revision.
bool
checkAccess(MediaInterface $media, AccountInterface $account, string $op = 'view')
Checks media item revision access.