src/Charcoal/Cms/TemplateableTrait.php
protected function saveTemplateOptions(array $properties = null)
    {
        if ($properties === null) {
            $properties = $this->defaultTemplateProperties();
        }

        if ($this->areTemplateOptionsFinalized === false) {
            $this->areTemplateOptionsFinalized = true;
            $this->prepareTemplateOptions();
        }

        $key  = 'template_options';
        $prop = $this->property($key);
        $prop->setStructureMetadata($this->templateOptionsMetadata());
    }
protected function saveTemplateOptions(array $properties = null)
    {
        if ($properties === null) {
            $properties = $this->defaultTemplateProperties();
        }

        if ($this->areTemplateOptionsFinalized === false) {
            $this->areTemplateOptionsFinalized = true;
            $this->prepareTemplateOptions();
        }

        $key  = 'template_options';
        $prop = $this->property($key);
        $prop->setStructureMetadata($this->templateOptionsMetadata());
    }
protected function saveTemplateOptions ( array $ properties = null ) { if ( $ properties === null ) { $ properties = $ this -> defaultTemplateProperties ( ) ; } if ( $ this -> areTemplateOptionsFinalized === false ) { $ this -> areTemplateOptionsFinalized = true ; $ this -> prepareTemplateOptions ( ) ; } $ key = 'template_options' ; $ prop = $ this -> property ( $ key ) ; $ prop -> setStructureMetadata ( $ this -> templateOptionsMetadata ( ) ) ; }
Save the template options structure.

@param  (PropertyInterface|string)[]|null $properties The template properties to parse.
@return void
Save the template options structure .