Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TermSelection.php

function TermSelection::defaultConfiguration

Overrides DefaultSelection::defaultConfiguration

File

core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php, line 27

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal