Inheritance: extends Pagekit\View\Asset\Asset
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getSource()
 {
     if (!($path = $this->getPath())) {
         return parent::getSource();
     }
     $path = App::file()->getUrl($path);
     if ($version = $this->getOption('version')) {
         $path .= (false === strpos($path, '?') ? '?' : '&') . 'v=' . $version;
     }
     return $path;
 }
 /**
  * {@inheritdoc}
  */
 public function getSource()
 {
     return ($path = $this->getPath()) ? App::file()->getUrl($path) : parent::getSource();
 }