protected function FieldTypeExportManager::sortDefinitions in Entity Export CSV 8
Sort definitions by weigth descending.
Parameters
array $definitions: The definitions.
2 calls to FieldTypeExportManager::sortDefinitions()
- FieldTypeExportManager::getFieldTypeOptions in src/
Plugin/ FieldTypeExportManager.php - Get definition options for a given field type.
- FieldTypeExportManager::getOptions in src/
Plugin/ FieldTypeExportManager.php - Get definition options.
File
- src/
Plugin/ FieldTypeExportManager.php, line 105
Class
- FieldTypeExportManager
- Provides the Field type export plugin manager.
Namespace
Drupal\entity_export_csv\PluginCode
protected function sortDefinitions(array &$definitions) {
uasort($definitions, function ($a, $b) {
return $a['weight'] - $b['weight'];
});
}