Loads the asset into memory and applies load filters.
You may provide an additional filter to apply during load.
FilterInterface $additionalFilter An additional filter:
Overrides AssetInterface::load
public function load(FilterInterface $additionalFilter = null) {
$source = VarUtils::resolve($this->source, $this
->getVars(), $this
->getValues());
if (!is_file($source)) {
throw new \RuntimeException(sprintf('The source file "%s" does not exist.', $source));
}
$this
->doLoad(file_get_contents($source), $additionalFilter);
}