Same name and namespace in other branches
  1. 8.9.x core/modules/language/src/Annotation/LanguageNegotiation.php \Drupal\language\Annotation\LanguageNegotiation::types
  2. 9 core/modules/language/src/Annotation/LanguageNegotiation.php \Drupal\language\Annotation\LanguageNegotiation::types

An array of allowed language types.

If a language negotiation plugin does not specify which language types it should be used with, it will be available for all the configurable language types.

An array of language types, such as the \Drupal\Core\Language\LanguageInterface::TYPE_* constants.

Type: string[]

File

core/modules/language/src/Annotation/LanguageNegotiation.php, line 43

Class

LanguageNegotiation
Defines a language negotiation annotation object.

Namespace

Drupal\language\Annotation

Code

public $types;