/** * getParent * * @return mixed|null */ public function parent() { if (!$this->extend) { return null; } if (!$this->parent) { $this->parent = new static($this->paths); $this->parent->render($this->extend, $this->data); } return $this->parent->getBlock($this->currentBlock); }