Beispiel #1
0
 /**
  * Determines if an url is active or not.
  *
  * @param array $item the item config
  * @return bool true if active
  */
 protected function isItemActive($item)
 {
     if (!isset($item['url'])) {
         return false;
     }
     if (isset($this->isActiveCallback)) {
         return call_user_func($this->isActiveCallback, $item);
     } else {
         return \asinfotrack\yii2\toolbox\helpers\Url::isUrlActive($item['url']);
     }
 }