eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::loadPathDataByHierarchy PHP Method

loadPathDataByHierarchy() abstract public method

The first entry in $hierarchyData corresponds to the top-most path element in the path, the second entry the child of the first path element and so on. This method is faster than self::getPath() since it can fetch all elements using only one query, but can be used only for autogenerated paths.
abstract public loadPathDataByHierarchy ( array $hierarchyData ) : array
$hierarchyData array
return array
    public abstract function loadPathDataByHierarchy(array $hierarchyData);

Usage Example

 /**
  * Loads path data identified by given ordered array of hierarchy data.
  *
  * The first entry in $hierarchyData corresponds to the top-most path element in the path, the second entry the
  * child of the first path element and so on.
  * This method is faster than self::getPath() since it can fetch all elements using only one query, but can be used
  * only for autogenerated paths.
  *
  * @param array $hierarchyData
  *
  * @return array
  */
 public function loadPathDataByHierarchy(array $hierarchyData)
 {
     try {
         return $this->innerGateway->loadPathDataByHierarchy($hierarchyData);
     } 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\Content\UrlAlias\Gateway::loadPathDataByHierarchy