class PageEditVoter extends Voter

Voter for PageEdit access

Constants

ARCHIVED

Used for access to archived

ARCHIVED_DELETE

Used for access to archived-delete

CONFIG

Used for access to config

CREATE

Used for access to create

DASHBOARD

Used for access to dashboard

DELETE

Used for access to delete

DELETED

Used for access to deleted

DELETED_DELETE

Used for access to deleted-delete

DISPLAY

Used for access to display

DUPLICATE

Used for access to duplicate

HELP

Used for access to help

LINKS

Used for access to links

MODIFY

Used for access to modify

REDIRECTED

Used for access to redirected

REDIRECTED_DELETE

Used for access to redirected-delete

SLUG

Used for access to slug

UPLOAD

Used for access to upload

ATTRIBUTES

Contains all the available attributes to check with in supports()

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface
private AccessDecisionManagerInterface $decisionManager Stores AccessDecisionManagerInterface
private Request $request Stores current Request

Methods

__construct(ConfigServiceInterface $configService, AccessDecisionManagerInterface $decisionManager, RequestStack $requestStack)

No description

supports($attribute, $subject)

{@inheritdoc}

voteOnAttribute($attribute, $subject, TokenInterface $token)

{@inheritdoc}

bool
hasRoleNeeded($token)

Checks if user has roleNeeded

bool
isUploadAllowed($token)

Checks if upload is allowed

Details

at line 172
__construct(ConfigServiceInterface $configService, AccessDecisionManagerInterface $decisionManager, RequestStack $requestStack)

Parameters

ConfigServiceInterface $configService
AccessDecisionManagerInterface $decisionManager
RequestStack $requestStack

at line 185
protected supports($attribute, $subject)

{@inheritdoc}

Parameters

$attribute
$subject

at line 197
protected voteOnAttribute($attribute, $subject, TokenInterface $token)

{@inheritdoc}

Parameters

$attribute
$subject
TokenInterface $token

at line 231
bool hasRoleNeeded($token)

Checks if user has roleNeeded

Parameters

$token

Return Value

bool

at line 240
bool isUploadAllowed($token)

Checks if upload is allowed

Parameters

$token

Return Value

bool