src/Charcoal/Admin/Widget/FormGroup/TemplateOptionsFormGroup.php
public function templateProperty()
    {
        if ($this->templateProperty === null) {
            $obj = $this->obj();
            if ($obj instanceof TemplateableInterface) {
                $this->setTemplateProperty($obj->property('template_ident'));
            } else {
                throw new RuntimeException(sprintf(
                    'Storage property owner is not defined for "%s"',
                    get_class($this)
                ));
            }
        }

        return $this->templateProperty;
    }
public function templateProperty()
    {
        if ($this->templateProperty === null) {
            $obj = $this->obj();
            if ($obj instanceof TemplateableInterface) {
                $this->setTemplateProperty($obj->property('template_ident'));
            } else {
                throw new RuntimeException(sprintf(
                    'Storage property owner is not defined for "%s"',
                    get_class($this)
                ));
            }
        }

        return $this->templateProperty;
    }
public function templateProperty ( ) { if ( $ this -> templateProperty === null ) { $ obj = $ this -> obj ( ) ; if ( $ obj instanceof TemplateableInterface ) { $ this -> setTemplateProperty ( $ obj -> property ( 'template_ident' ) ) ; } else { throw new RuntimeException ( sprintf ( 'Storage property owner is not defined for "%s"' , get_class ( $ this ) ) ) ; } } return $ this -> templateProperty ; }
Retrieve form object's property for template controller choices.

@throws RuntimeException If the template property was not previously set.
@return PropertyInterface|null
Retrieve form object s property for template controller choices .