Neos\Flow\Security\Policy\Role::setParentRoles PHP Method

setParentRoles() public method

Assign parent roles to this role.
public setParentRoles ( array $parentRoles ) : void
$parentRoles array indexed by role identifier
return void
    public function setParentRoles(array $parentRoles)
    {
        $this->parentRoles = [];
        foreach ($parentRoles as $parentRole) {
            $this->addParentRole($parentRole);
        }
    }