public function ConfigTranslationFieldListBuilder::sortRows in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::sortRows()
Sorts an array by value.
Parameters
array $a: First item for comparison.
array $b: Second item for comparison.
Return value
int The comparison result for uasort().
Overrides ConfigTranslationEntityListBuilder::sortRows
File
- core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php, line 172 - Contains \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder.
Class
- ConfigTranslationFieldListBuilder
- Defines the config translation list builder for field entities.
Namespace
Drupal\config_translation\ControllerCode
public function sortRows($a, $b) {
return $this
->sortRowsMultiple($a, $b, array(
'bundle',
'label',
));
}