src/Codeception/Module/WPDb.php
protected function setTemplateData(array $overrides = [])
    {
        if (empty($overrides['template_data'])) {
            $this->templateData = [];
        } else {
            $this->templateData = $overrides['template_data'];
            $overrides = array_diff_key($overrides, ['template_data' => []]);
        }

        return $overrides;
    }
protected function setTemplateData(array $overrides = [])
    {
        if (empty($overrides['template_data'])) {
            $this->templateData = [];
        } else {
            $this->templateData = $overrides['template_data'];
            $overrides = array_diff_key($overrides, ['template_data' => []]);
        }

        return $overrides;
    }
protected function setTemplateData ( array $ overrides = [ ] ) { if ( empty ( $ overrides [ 'template_data' ] ) ) { $ this -> templateData = [ ] ; } else { $ this -> templateData = $ overrides [ 'template_data' ] ; $ overrides = array_diff_key ( $ overrides , [ 'template_data' => [ ] ] ) ; } return $ overrides ; }
Sets the template data in the overrides array.

@param array $overrides An array of overrides to apply the template data to.

@return array The array of overrides with the template data replaced.
Sets the template data in the overrides array .