Neos\Flow\Security\Policy\Role::setParentRoles PHP 메소드

setParentRoles() 공개 메소드

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