public function TermSelection::defaultConfiguration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php \Drupal\taxonomy\Plugin\EntityReferenceSelection\TermSelection::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides DefaultSelection::defaultConfiguration
File
- core/modules/ taxonomy/ src/ Plugin/ EntityReferenceSelection/ TermSelection.php, line 26 
Class
- TermSelection
- Provides specific access control for the taxonomy_term entity type.
Namespace
Drupal\taxonomy\Plugin\EntityReferenceSelectionCode
public function defaultConfiguration() {
  return [
    'sort' => [
      'field' => 'name',
      'direction' => 'asc',
    ],
  ] + parent::defaultConfiguration();
}