private function processContentEditFormTemplates(array $formTemplates)
    {
        $priorities = array_column($formTemplates, 'priority');
        array_multisort($priorities, SORT_DESC, $formTemplates);

        // return as a simple list of templates.
        return array_column($formTemplates, 'template');
    }
private function processContentEditFormTemplates(array $formTemplates)
    {
        $priorities = array_column($formTemplates, 'priority');
        array_multisort($priorities, SORT_DESC, $formTemplates);

        // return as a simple list of templates.
        return array_column($formTemplates, 'template');
    }
private function processContentEditFormTemplates ( array $ formTemplates ) { $ priorities = array_column ( $ formTemplates , 'priority' ) ; array_multisort ( $ priorities , SORT_DESC , $ formTemplates ) ; // return as a simple list of templates. return array_column ( $ formTemplates , 'template' ) ; }
Processes given prioritized list of templates, sorts them according to their priorities and
returns as a simple list of templates.

The input list of the templates needs to be in the form of:
<code>
[
[ 'template' => '<file_path>', 'priority' => <int> ],
],
</code>

@param array $formTemplates

@return array ordered list of templates
Processes given prioritized list of templates sorts them according to their priorities and returns as a simple list of templates .