Returns an array with the relevant data.
abstract public loadContentInfoByRemoteId ( mixed $remoteId ) : array | ||
$remoteId | mixed | |
Результат | array |
/** * Loads data for a content object identified by its remote ID * * Returns an array with the relevant data. * * @param mixed $remoteId * * @return array */ public function loadContentInfoByRemoteId($remoteId) { try { return $this->innerGateway->loadContentInfoByRemoteId($remoteId); } catch (DBALException $e) { throw new \RuntimeException('Database error', 0, $e); } catch (\PDOException $e) { throw new \RuntimeException('Database error', 0, $e); } }
/** * Returns the metadata object for a content identified by $remoteId. * * @param mixed $remoteId * * @return \eZ\Publish\SPI\Persistence\Content\ContentInfo */ public function loadContentInfoByRemoteId($remoteId) { return $this->mapper->extractContentInfoFromRow($this->contentGateway->loadContentInfoByRemoteId($remoteId)); }