1 layout.class.inc Layout::getPath()

Return a layout's path based on its assigned menu item.

Return value

string:

File

core/modules/layout/includes/layout.class.inc, line 693
Class for loading, modifying, and executing a layout.

Class

Layout
@file Class for loading, modifying, and executing a layout.

Code

function getPath() {
  if ($this->menu_item) {
    return $this->menu_item->path;
  }
  else {
    return $this->path;
  }
}