src/Charcoal/Cms/TemplateableTrait.php
public function setTemplateOptions($options)
    {
        $this->areTemplateOptionsFinalized = false;

        if (is_numeric($options)) {
            $options = null;
        } elseif (is_string($options)) {
            $options = json_decode($options, true);
        }

        $this->templateOptions = $options;

        return $this;
    }
public function setTemplateOptions($options)
    {
        $this->areTemplateOptionsFinalized = false;

        if (is_numeric($options)) {
            $options = null;
        } elseif (is_string($options)) {
            $options = json_decode($options, true);
        }

        $this->templateOptions = $options;

        return $this;
    }
public function setTemplateOptions ( $ options ) { $ this -> areTemplateOptionsFinalized = false ; if ( is_numeric ( $ options ) ) { $ options = null ; } elseif ( is_string ( $ options ) ) { $ options = json_decode ( $ options , true ) ; } $ this -> templateOptions = $ options ; return $ this ; }
Customize the template's options.

@param  mixed $options Template options.
@return self
Customize the template s options .