Loads data for all parent Locations for unpublished Content by given $contentId.
abstract public loadParentLocationsDataForDraftContent ( mixed $contentId ) : array | ||
$contentId | mixed | |
Результат | array |
/** * @see \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::loadParentLocationsDataForDraftContent */ public function loadParentLocationsDataForDraftContent($contentId) { try { return $this->innerGateway->loadParentLocationsDataForDraftContent($contentId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::loadParentLocationsForDraftContent */ public function loadParentLocationsForDraftContent($contentId) { $rows = $this->locationGateway->loadParentLocationsDataForDraftContent($contentId); return $this->locationMapper->createLocationsFromRows($rows); }