Bolt\Menu\MenuEntry::getUri PHP Метод

getUri() публичный Метод

Return the menu entry's URI relative to Bolt admin's.
public getUri ( ) : string
Результат string
    public function getUri()
    {
        if (strpos($this->uri, '/') === 0) {
            return $this->uri;
        }
        return $this->parent ? $this->parent->getUri() . '/' . $this->uri : $this->uri;
    }

Usage Example

Пример #1
0
 /**
  * Return the menu entry's URI relative to Bolt admin's.
  *
  * @return string
  */
 public function getUri()
 {
     if (strpos($this->uri, '/') === 0) {
         return $this->uri;
     }
     return $this->parent ? $this->parent->getUri() . '/' . $this->uri : $this->uri;
 }
All Usage Examples Of Bolt\Menu\MenuEntry::getUri