eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::loadRoleDraftByRoleId PHP Method

loadRoleDraftByRoleId() abstract public method

Loads a role draft by the original role ID.
abstract public loadRoleDraftByRoleId ( mixed $roleId ) : array
$roleId mixed ID of the role the draft was created from.
return array
    public abstract function loadRoleDraftByRoleId($roleId);

Usage Example

 /**
  * Loads a role draft by the original role ID.
  *
  * @param mixed $roleId ID of the role the draft was created from.
  *
  * @return array
  */
 public function loadRoleDraftByRoleId($roleId)
 {
     try {
         return $this->innerGateway->loadRoleDraftByRoleId($roleId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::loadRoleDraftByRoleId