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

isRootEntry() abstract public method

Special root entry entry will have parentId=0 and text=''. In standard installation this entry will point to location with id=2.
abstract public isRootEntry ( mixed $id ) : boolean
$id mixed
return boolean
    public abstract function isRootEntry($id);

Usage Example

 /**
  * Returns boolean indicating if the row with given $id is special root entry.
  *
  * Special root entry entry will have parentId=0 and text=''.
  * In standard installation this entry will point to location with id=2.
  *
  * @param mixed $id
  *
  * @return bool
  */
 public function isRootEntry($id)
 {
     try {
         return $this->innerGateway->isRootEntry($id);
     } 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::isRootEntry