Class

eZ\Publish\Core\Repository\Values\User\RoleCreateStruct

class RoleCreateStruct extends RoleCreateStruct

This class is used to create a new role.

Properties

string $identifier Readable string identifier of a role.

Methods

PolicyCreateStruct[] getPolicies()

Returns policies associated with the role.

addPolicy(PolicyCreateStruct $policyCreate)

Adds a policy to this role.

Details

at line 33
public PolicyCreateStruct[] getPolicies()

Returns policies associated with the role.

Return Value

PolicyCreateStruct[]

at line 43
public addPolicy(PolicyCreateStruct $policyCreate)

Adds a policy to this role.

Parameters

PolicyCreateStruct $policyCreate