PageEditVoter
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
No description
{@inheritdoc}
{@inheritdoc}
Checks if user has roleNeeded
Checks if upload is allowed
Details
at line 172
__construct(ConfigServiceInterface $configService, AccessDecisionManagerInterface $decisionManager, RequestStack $requestStack)
at line 185
protected
supports($attribute, $subject)
{@inheritdoc}
at line 197
protected
voteOnAttribute($attribute, $subject, TokenInterface $token)
{@inheritdoc}
at line 231
bool
hasRoleNeeded($token)
Checks if user has roleNeeded
at line 240
bool
isUploadAllowed($token)
Checks if upload is allowed