Bolt\Storage\Entity\ContentValuesTrait::getTemplateFieldsContentType PHP Method

getTemplateFieldsContentType() protected method

Get the template associate with a ContentType field.
protected getTemplateFieldsContentType ( ) : string
return string
    protected function getTemplateFieldsContentType()
    {
        if (!is_array($this->contenttype)) {
            return '';
        }
        if ($templateFieldsConfig = $this->app['config']->get('theme/templatefields')) {
            $template = $this->app['templatechooser']->record($this);
            if (array_key_exists($template, $templateFieldsConfig)) {
                return $templateFieldsConfig[$template];
            }
        }
        return '';
    }