LanguageNegotiation

Defines a language negotiation annotation object.

Plugin Namespace: Plugin\LanguageNegotiation

For a working example, see \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationBrowser.

Hierarchy

See also

\Drupal\language\LanguageNegotiator

\Drupal\language\LanguageNegotiationMethodManager

\Drupal\language\LanguageNegotiationMethodInterface

hook_language_negotiation_info_alter()

Plugin API

Related topics

Annotations
Annotations for class discovery and metadata description.

File

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

Namespace

Drupal\language\Annotation

Members

Name Modifiers Type Description
LanguageNegotiation::$config_route_name public property The route pointing to the plugin's configuration page.
LanguageNegotiation::$description public property The description of the language negotiation plugin.
LanguageNegotiation::$id public property The language negotiation plugin ID.
LanguageNegotiation::$name public property The human-readable name of the language negotiation plugin.
LanguageNegotiation::$types public property An array of allowed language types.
LanguageNegotiation::$weight public property The default weight of the language negotiation plugin.
Plugin::$definition protected property The plugin definition read from the class annotation.
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object.
doc_Drupal
2016-10-29 09:22:44
Comments
Leave a Comment

Please login to continue.