src/Charcoal/Cms/TemplateableTrait.php
public function templateIdentClass()
    {
        $templateIdent = $this->templateIdent();
        $property      = $this->property('template_ident');

        $key = $property->ident();
        if ($property instanceof SelectablePropertyInterface) {
            if ($property->hasChoice($templateIdent)) {
                $choice = $property->choice($templateIdent);
                $keys   = [ 'controller', 'template', 'class' ];
                foreach ($keys as $key) {
                    if (isset($choice[$key])) {
                        return $choice[$key];
                    }
                }
            }
        } else {
            return $templateIdent;
        }
    }
public function templateIdentClass()
    {
        $templateIdent = $this->templateIdent();
        $property      = $this->property('template_ident');

        $key = $property->ident();
        if ($property instanceof SelectablePropertyInterface) {
            if ($property->hasChoice($templateIdent)) {
                $choice = $property->choice($templateIdent);
                $keys   = [ 'controller', 'template', 'class' ];
                foreach ($keys as $key) {
                    if (isset($choice[$key])) {
                        return $choice[$key];
                    }
                }
            }
        } else {
            return $templateIdent;
        }
    }
public function templateIdentClass ( ) { $ templateIdent = $ this -> templateIdent ( ) ; $ property = $ this -> property ( 'template_ident' ) ; $ key = $ property -> ident ( ) ; if ( $ property instanceof SelectablePropertyInterface ) { if ( $ property -> hasChoice ( $ templateIdent ) ) { $ choice = $ property -> choice ( $ templateIdent ) ; $ keys = [ 'controller' , 'template' , 'class' ] ; foreach ( $ keys as $ key ) { if ( isset ( $ choice [ $ key ] ) ) { return $ choice [ $ key ] ; } } } } else { return $ templateIdent ; } }
Retrieve the template identifier as class path.

@return mixed
Retrieve the template identifier as class path .