Ejemplo n.º 1
0
 /**
  * @param string $nameElement
  * @param LayoutInterface $layout
  *
  * @return null|string
  */
 protected function _getElementPath(LayoutInterface $layout, $nameElement)
 {
     $parentName = $layout->getParentName($nameElement);
     if (!$parentName) {
         return null;
     }
     $parentBlock = $layout->getBlock($parentName);
     $pathName = $parentBlock ? $parentName : "[{$parentName}]";
     $path = isset($parentName) && $parentName !== false ? $this->_getElementPath($layout, $parentName) : null;
     return isset($path) ? $path . " / " . $pathName : $pathName;
 }