ConfigTranslationFieldListBuilder::sortRows

public ConfigTranslationFieldListBuilder::sortRows($a, $b)

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 167

Class

ConfigTranslationFieldListBuilder
Defines the config translation list builder for field entities.

Namespace

Drupal\config_translation\Controller

Code

public function sortRows($a, $b) {
  return $this->sortRowsMultiple($a, $b, array('bundle', 'label'));
}
doc_Drupal
2016-10-29 08:54:55
Comments
Leave a Comment

Please login to continue.