You are here

public function TermSelection::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php \Drupal\taxonomy\Plugin\EntityReferenceSelection\TermSelection::defaultConfiguration()
  2. 10 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\EntityReferenceSelection

Code

public function defaultConfiguration() {
  return [
    'sort' => [
      'field' => 'name',
      'direction' => 'asc',
    ],
  ] + parent::defaultConfiguration();
}