Skip to content
Snippets Groups Projects
Select Git revision
  • 11.x
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
40 results

MediaSource.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    LanguageNegotiation.php 1.64 KiB
    <?php
    
    namespace Drupal\language\Annotation;
    
    use Drupal\Component\Annotation\Plugin;
    
    /**
     * Defines a language negotiation annotation object.
     *
     * Plugin Namespace: Plugin\LanguageNegotiation
     *
     * For a working example, see
     * \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationBrowser.
     *
     * @see \Drupal\language\LanguageNegotiator
     * @see \Drupal\language\LanguageNegotiationMethodManager
     * @see \Drupal\language\LanguageNegotiationMethodInterface
     * @see hook_language_negotiation_info_alter()
     * @see plugin_api
     *
     * @Annotation
     */
    class LanguageNegotiation extends Plugin {
    
      /**
       * The language negotiation plugin ID.
       *
       * @var string
       */
      public $id;
    
      /**
       * 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.
       *
       * @var string[]
       *   An array of language types, such as the
       *   \Drupal\Core\Language\LanguageInterface::TYPE_* constants.
       */
      public $types;
    
      /**
       * The default weight of the language negotiation plugin.
       *
       * @var int
       */
      public $weight;
    
      /**
       * The human-readable name of the language negotiation plugin.
       *
       * @var \Drupal\Core\Annotation\Translation
       *
       * @ingroup plugin_translatable
       */
      public $name;
    
      /**
       * The description of the language negotiation plugin.
       *
       * @var \Drupal\Core\Annotation\Translation
       *
       * @ingroup plugin_translatable
       */
      public $description;
    
      /**
       * The route pointing to the plugin's configuration page.
       *
       * @var string
       */
      public $config_route_name;
    
    }