3 namespace Drupal\language\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a language negotiation annotation object.
10 * Plugin Namespace: Plugin\LanguageNegotiation
12 * For a working example, see
13 * \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationBrowser.
15 * @see \Drupal\language\LanguageNegotiator
16 * @see \Drupal\language\LanguageNegotiationMethodManager
17 * @see \Drupal\language\LanguageNegotiationMethodInterface
18 * @see hook_language_negotiation_info_alter()
23 class LanguageNegotiation extends Plugin {
26 * The language negotiation plugin ID.
33 * An array of allowed language types.
35 * If a language negotiation plugin does not specify which language types it
36 * should be used with, it will be available for all the configurable
40 * An array of language types, such as the
41 * \Drupal\Core\Language\LanguageInterface::TYPE_* constants.
46 * The default weight of the language negotiation plugin.
53 * The human-readable name of the language negotiation plugin.
55 * @ingroup plugin_translatable
57 * @var \Drupal\Core\Annotation\Translation
62 * The description of the language negotiation plugin.
64 * @ingroup plugin_translatable
66 * @var \Drupal\Core\Annotation\Translation
71 * The route pointing to the plugin's configuration page.
75 public $config_route_name;