abstract class BaseNodeFilter

Hierarchy

Expanded class hierarchy of BaseNodeFilter

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Filter/BaseNodeFilter.php, line 14

Namespace

Assetic\Filter
View source
abstract class BaseNodeFilter extends BaseProcessFilter {
  private $nodePaths = array();
  public function getNodePaths() {
    return $this->nodePaths;
  }
  public function setNodePaths(array $nodePaths) {
    $this->nodePaths = $nodePaths;
  }
  public function addNodePath($nodePath) {
    $this->nodePaths[] = $nodePath;
  }
  protected function createProcessBuilder(array $arguments = array()) {
    $pb = parent::createProcessBuilder($arguments);
    if ($this->nodePaths) {
      $pb
        ->setEnv('NODE_PATH', implode(':', $this->nodePaths));
      $this
        ->mergeEnv($pb);
    }
    return $pb;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseNodeFilter::$nodePaths private property
BaseNodeFilter::addNodePath public function
BaseNodeFilter::createProcessBuilder protected function Creates a new process builder. Overrides BaseProcessFilter::createProcessBuilder
BaseNodeFilter::getNodePaths public function
BaseNodeFilter::setNodePaths public function
BaseProcessFilter::$timeout private property
BaseProcessFilter::mergeEnv protected function
BaseProcessFilter::setTimeout public function Set the process timeout.
FilterInterface::filterDump public function Filters an asset just before it's dumped. 36
FilterInterface::filterLoad public function Filters an asset after it has been loaded. 34