/** * {@inheritDoc} */ public function addChildren(BlockInterface $child) { $this->children[] = $child; $child->setParent($this); if ($child instanceof PageBlockInterface) { $child->setPage($this->getPage()); } }
/** * {@inheritDoc} */ public function addChildren(BlockInterface $child) { $this->children[] = $child; $child->setParent($this); if ($child instanceof PageBlockInterface) { $child->setPage($this->getPage()); } }