/** * @return \Fraym\Registry\Entity\text|string */ protected function getTemplatePath() { $config = $this->config->get('DYNAMIC_TEMPLATE_PATH'); if (!empty($config->value)) { $path = $config->value; } else { $path = $this->template->getTemplateDir() . DIRECTORY_SEPARATOR . 'Dynamic'; } return $path; }