Example #1
0
 /**
  * Check if current page is an LC portal
  *
  * @return array
  */
 protected function getPortal()
 {
     $result = array(null, null, array());
     $item = menu_get_item();
     if ($item && !empty($item['path'])) {
         $result[0] = \XLite\Module\CDev\DrupalConnector\Drupal\Module::getInstance()->getPortal($item['path']);
         if ($result[0]) {
             $result[1] = $item['path'];
             $result[2] = empty($item['page_arguments']) ? array() : $item['page_arguments'];
         }
     }
     return $result;
 }