eZ\Publish\Core\Repository\RoleService::loadRoleDraftByRoleId PHP Метод

loadRoleDraftByRoleId() публичный Метод

Loads a RoleDraft by the ID of the role it was created from.
public loadRoleDraftByRoleId ( mixed $roleId ) : eZ\Publish\API\Repository\Values\User\RoleDraft
$roleId mixed ID of the role the draft was created from.
Результат eZ\Publish\API\Repository\Values\User\RoleDraft
    public function loadRoleDraftByRoleId($roleId)
    {
        if ($this->repository->hasAccess('role', 'read') !== true) {
            throw new UnauthorizedException('role', 'read');
        }
        $spiRole = $this->userHandler->loadRoleDraftByRoleId($roleId);
        return $this->roleDomainMapper->buildDomainRoleDraftObject($spiRole);
    }