Copied!

PermissionCriterionResolver

PermissionCriterionResolver.php : 18

This service provides methods for resolving criterion permissions.

Methods

publicgetPermissionsCriterion()

PermissionCriterionResolver.php : 32

Get criteria representation for a permission.

public getPermissionsCriterion([string $module = 'content' ][, string $function = 'read' ][, array<string|int, mixed>|null $targets = null ]) : bool|Criterion

Will return a criteria if current user has limited access to the given module/function, however if user has either full or no access then boolean is returned.

Parameters

Name Type Default value Description
$module string 'content' -
$function string 'read' -
$targets array<string|int, mixed>|null null -

Return values

bool|Criterion

publicgetQueryPermissionsCriterion()

PermissionCriterionResolver.php : 41

Get composite Criterion for Querying permissions.

public getQueryPermissionsCriterion() : Criterion

MatchAll and MatchNone are returned for a user with full and no access respectively.

Return values

Criterion