Returns the time the current asset was last modified.
integer|null A UNIX timestamp
Overrides AssetInterface::getLastModified
public function getLastModified() {
$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));
}
return filemtime($source);
}