Skip to content
Snippets Groups Projects
Commit ad006bbd authored by Alex Pott's avatar Alex Pott Committed by Marcos Cano
Browse files

Issue #3507833 by alexpott: Sort lists of things on admin/config/entity-usage/settings

parent fadf3fb7
No related branches found
No related tags found
1 merge request!121Add more sorting
Pipeline #429043 passed with warnings
......@@ -113,6 +113,8 @@ class EntityUsageSettingsForm extends ConfigFormBase {
$tabs_options[$entity_type->id()] = $entity_type->getLabel();
}
}
natcasesort($tabs_options);
natcasesort($entity_type_options);
// Files and users shouldn't be tracked by default.
......@@ -181,6 +183,7 @@ class EntityUsageSettingsForm extends ConfigFormBase {
foreach ($plugins as $plugin) {
$plugin_options[$plugin['id']] = $plugin['label'];
}
natcasesort($plugin_options);
$form['track_enabled_plugins']['plugins'] = [
'#type' => 'checkboxes',
'#title' => $this->t('Tracking plugins'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment