You are here

public function WorkspaceSelection::defaultConfiguration in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/Plugin/EntityReferenceSelection/WorkspaceSelection.php \Drupal\workspaces\Plugin\EntityReferenceSelection\WorkspaceSelection::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides DefaultSelection::defaultConfiguration

File

core/modules/workspaces/src/Plugin/EntityReferenceSelection/WorkspaceSelection.php, line 42

Class

WorkspaceSelection
Provides specific access control for the workspace entity type.

Namespace

Drupal\workspaces\Plugin\EntityReferenceSelection

Code

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