/** * Returns the path which will be included directly by the core. * * @return string */ public function getPath() { if (!empty($this->path)) { return $this->path; } return $this->parent ? $this->parent->getPath() : null; }