public function format($templateData)
    {
        $viewer = SSViewer::execute_template(['type' => 'Includes', 'WorkflowDefinitionExport'], $templateData);
        // Temporary until we find the source of the replacement in SSViewer
        $processed = str_replace('&amp;', '&', $viewer);
        // Clean-up newline "gaps" that SSViewer leaves behind from the placement of template control structures
        return preg_replace("#^\R+|^[\t\s]*\R+#m", '', $processed);
    }
public function format($templateData)
    {
        $viewer = SSViewer::execute_template(['type' => 'Includes', 'WorkflowDefinitionExport'], $templateData);
        // Temporary until we find the source of the replacement in SSViewer
        $processed = str_replace('&amp;', '&', $viewer);
        // Clean-up newline "gaps" that SSViewer leaves behind from the placement of template control structures
        return preg_replace("#^\R+|^[\t\s]*\R+#m", '', $processed);
    }
public function format ( $ templateData ) { $ viewer = SSViewer :: execute_template ( [ 'type' => 'Includes' , 'WorkflowDefinitionExport' ] , $ templateData ) ; // Temporary until we find the source of the replacement in SSViewer $ processed = str_replace ( '&amp;' , '&' , $ viewer ) ; // Clean-up newline "gaps" that SSViewer leaves behind from the placement of template control structures return preg_replace ( "#^\R+|^[\t\s]*\R+#m" , '' , $ processed ) ; }
Format the exported data as YAML.

@param ArrayData $templateData
@return void
Format the exported data as YAML .