eZ\Publish\Core\Persistence\Legacy\User\Gateway\ExceptionConversion::load PHP Method

load() public method

Loads user with user ID.
public load ( mixed $userId ) : array
$userId mixed
return array
    public function load($userId)
    {
        try {
            return $this->innerGateway->load($userId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }