Overrides LoaderInterface::getSourceContext
public function getSourceContext(string $name) : Source { if (!isset($this->templates[$name])) { throw new LoaderError(\sprintf('Template "%s" is not defined.', $name)); } return new Source($this->templates[$name], $name); }