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

loadPathDataByHierarchy() 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.
public loadPathDataByHierarchy ( array $hierarchyData ) : array
$hierarchyData array
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);
        }
    }