HashtagPolicy
in package
implements
ResourcePolicyInterface
Uses
HasPolicyTrait
Class HashtagPolicy.
Tags
Table of Contents
Interfaces
Properties
- $type : string
Methods
- __call() : bool
- create() : bool
- delete() : bool
- deleteOwn() : bool
- update() : bool
- view() : bool
- viewAny() : bool
- viewOnProfilePage() : bool
- viewOwner() : bool
Properties
$type
protected
string
$type
= 'hashtag'
Methods
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>
Return values
boolcreate()
public
create(User $user[, User|null $owner = null ]) : bool
Parameters
Tags
Return values
booldelete()
public
delete(User $user[, Entity|null $resource = null ]) : bool
Parameters
Return values
booldeleteOwn()
public
deleteOwn(User $user[, Entity|null $resource = null ]) : bool
Parameters
Return values
boolupdate()
public
update(User $user[, Entity|null $resource = null ]) : bool
Parameters
Return values
boolview()
public
view(User $user, Entity $resource) : bool
Parameters
Tags
Return values
boolviewAny()
public
viewAny(User $user[, User|null $owner = null ]) : bool
Parameters
Return values
boolviewOnProfilePage()
public
viewOnProfilePage(User $user, User $owner) : bool
Parameters
Return values
boolviewOwner()
public
viewOwner(User $user[, User|null $owner = null ]) : bool