src/Charcoal/Cms/TemplateableTrait.php
public function templateOptionsStructure()
    {
        if ($this->areTemplateOptionsFinalized === false) {
            $this->areTemplateOptionsFinalized = true;
            $this->prepareTemplateOptions();
        }

        $key  = 'template_options';
        $prop = $this->property($key);
        $val  = $this->propertyValue($key);
        $obj  = $prop->structureVal($val, $this->templateOptionsMetadata());

        return $obj;
    }
public function templateOptionsStructure()
    {
        if ($this->areTemplateOptionsFinalized === false) {
            $this->areTemplateOptionsFinalized = true;
            $this->prepareTemplateOptions();
        }

        $key  = 'template_options';
        $prop = $this->property($key);
        $val  = $this->propertyValue($key);
        $obj  = $prop->structureVal($val, $this->templateOptionsMetadata());

        return $obj;
    }
public function templateOptionsStructure ( ) { if ( $ this -> areTemplateOptionsFinalized === false ) { $ this -> areTemplateOptionsFinalized = true ; $ this -> prepareTemplateOptions ( ) ; } $ key = 'template_options' ; $ prop = $ this -> property ( $ key ) ; $ val = $ this -> propertyValue ( $ key ) ; $ obj = $ prop -> structureVal ( $ val , $ this -> templateOptionsMetadata ( ) ) ; return $ obj ; }
Retrieve the object's template options as a structured model.

@return ModelInterface|ModelInterface[]|null
Retrieve the object s template options as a structured model .