/** * {@inheritdoc} */ public function getPath() { if (null === $this->resolvedFilePath) { $this->resolvedFilePath = parent::getPath(); foreach ($this->context as $key => $value) { $this->resolvedFilePath = strtr($this->resolvedFilePath, ['%' . $key . '%' => $value]); } } return $this->resolvedFilePath; }