eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::getRealAliasId PHP Метод

getRealAliasId() защищенный Метод

First level entries must have parent id set to 0 instead of their parent location alias id. There are two cases when alias id needs to be corrected: 1) location is special location without URL alias (location with id=1 in standard installation) 2) location is site root location, having special root entry in the ezurlalias_ml table (location with id=2 in standard installation)
protected getRealAliasId ( mixed $locationId ) : mixed
$locationId mixed
Результат mixed
    protected function getRealAliasId($locationId)
    {
        // Absolute root location does have a url alias entry so we can skip lookup
        if ($locationId == self::ROOT_LOCATION_ID) {
            return 0;
        }
        $data = $this->gateway->loadAutogeneratedEntry('eznode:' . $locationId);
        // Root entries (URL wise) can return 0 as the returned value is used as parent (parent is 0 for root entries)
        if (empty($data) || $data['id'] != 0 && $data['parent'] == 0 && strlen($data['text']) == 0) {
            $id = 0;
        } else {
            $id = $data['id'];
        }
        return $id;
    }