public function prepareTemplateVariables($variables)
    {
        if (!isset($variables)) {
            $variables = new \stdClass();
        }

        // Set name property if the schema does not define it.
        if (!isset($variables->name) && !empty($this->schema_name)) {
            $variables->name = $this->schema_name;
        }

        // Set template property if the schema does not define it.
        if (!isset($variables->template) && ($theme = $this->getTheme())) {
            $variables->template = $theme;
        }
    }
public function prepareTemplateVariables($variables)
    {
        if (!isset($variables)) {
            $variables = new \stdClass();
        }

        // Set name property if the schema does not define it.
        if (!isset($variables->name) && !empty($this->schema_name)) {
            $variables->name = $this->schema_name;
        }

        // Set template property if the schema does not define it.
        if (!isset($variables->template) && ($theme = $this->getTheme())) {
            $variables->template = $theme;
        }
    }
public function prepareTemplateVariables ( $ variables ) { if ( ! isset ( $ variables ) ) { $ variables = new \ stdClass ( ) ; } // Set name property if the schema does not define it. if ( ! isset ( $ variables -> name ) && ! empty ( $ this -> schema_name ) ) { $ variables -> name = $ this -> schema_name ; } // Set template property if the schema does not define it. if ( ! isset ( $ variables -> template ) && ( $ theme = $ this -> getTheme ( ) ) ) { $ variables -> template = $ theme ; } }
Prepare template variables.

Add in template variables required for rendering but might not be in
the JSON schema.

@param object $variables The template variables.
Prepare template variables .