interface ConfigurableLanguageManagerInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/ConfigurableLanguageManagerInterface.php \Drupal\language\ConfigurableLanguageManagerInterface
Common interface for language negotiation services.
Hierarchy
- interface \Drupal\Core\Language\LanguageManagerInterface
- interface \Drupal\language\ConfigurableLanguageManagerInterface
Expanded class hierarchy of ConfigurableLanguageManagerInterface
All classes that implement ConfigurableLanguageManagerInterface
13 files declare their use of ConfigurableLanguageManagerInterface
- AccountForm.php in core/
modules/ user/ src/ AccountForm.php - Contains \Drupal\user\AccountForm.
- ConfigTranslationDeleteForm.php in core/
modules/ config_translation/ src/ Form/ ConfigTranslationDeleteForm.php - Contains \Drupal\config_translation\Form\ConfigTranslationDeleteForm.
- ConfigTranslationFormBase.php in core/
modules/ config_translation/ src/ Form/ ConfigTranslationFormBase.php - Contains \Drupal\config_translation\Form\ConfigTranslationFormBase.
- ConfigurableLanguage.php in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Contains \Drupal\language\Entity\ConfigurableLanguage.
- ImportForm.php in core/
modules/ locale/ src/ Form/ ImportForm.php - Contains \Drupal\locale\Form\ImportForm.
File
- core/
modules/ language/ src/ ConfigurableLanguageManagerInterface.php, line 16 - Contains \Drupal\language\ConfigurableLanguageManagerInterface.
Namespace
Drupal\languageView source
interface ConfigurableLanguageManagerInterface extends LanguageManagerInterface {
/**
* Rebuild the container to register services needed on multilingual sites.
*/
public static function rebuildServices();
/**
* Returns the language negotiator.
*
* @return \Drupal\language\LanguageNegotiatorInterface
* The language negotiator.
*/
public function getNegotiator();
/**
* Injects the language negotiator.
*
* @param \Drupal\language\LanguageNegotiatorInterface $negotiator
* The language negotiator.
*/
public function setNegotiator(LanguageNegotiatorInterface $negotiator);
/**
* Returns all the defined language types including fixed ones.
*
* A language type maybe configurable or fixed. A fixed language type is a
* type whose language negotiation methods are module-defined and not altered
* through the user interface.
*
* @return array
* An array of language type machine names.
*/
public function getDefinedLanguageTypes();
/**
* Stores language types configuration.
*
* @param array
* An indexed array with the following keys_
* - configurable: an array of configurable language type names.
* - all: an array of all the defined language type names.
*/
public function saveLanguageTypesConfiguration(array $config);
/**
* Updates locked system language weights.
*/
public function updateLockedLanguageWeights();
/**
* Gets a language config override object.
*
* @param string $langcode
* The language code for the override.
* @param string $name
* The language configuration object name.
*
* @return \Drupal\language\Config\LanguageConfigOverride
* The language config override object.
*/
public function getLanguageConfigOverride($langcode, $name);
/**
* Gets a language configuration override storage object.
*
* @param string $langcode
* The language code for the override.
*
* @return \Drupal\Core\Config\StorageInterface $storage
* A storage object to use for reading and writing the
* configuration override.
*/
public function getLanguageConfigOverrideStorage($langcode);
/**
* Returns the standard language list excluding already configured languages.
*
* @return array
* A list of standard language names keyed by langcode.
*/
public function getStandardLanguageListWithoutConfigured();
/**
* Gets the negotiated language method ID.
*
* @param string $type
* (optional) The language type; e.g., the interface or the content
* language.
*
* @return string
* The negotiated language method ID.
*/
public function getNegotiatedLanguageMethod($type = LanguageInterface::TYPE_INTERFACE);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableLanguageManagerInterface:: |
public | function | Returns all the defined language types including fixed ones. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Gets a language config override object. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Gets a language configuration override storage object. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Gets the negotiated language method ID. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Returns the language negotiator. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Returns the standard language list excluding already configured languages. | 1 |
ConfigurableLanguageManagerInterface:: |
public static | function | Rebuild the container to register services needed on multilingual sites. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Stores language types configuration. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Injects the language negotiator. | 1 |
ConfigurableLanguageManagerInterface:: |
public | function | Updates locked system language weights. | 1 |
LanguageManagerInterface:: |
public | function | Gets the current configuration override language. | 1 |
LanguageManagerInterface:: |
public | function | Returns the current language for the given type. | 1 |
LanguageManagerInterface:: |
public | function | Returns a language object representing the site's default language. | 1 |
LanguageManagerInterface:: |
public | function | Returns a list of the default locked languages. | 1 |
LanguageManagerInterface:: |
public | function | Returns information about all defined language types. | 1 |
LanguageManagerInterface:: |
public | function | Returns the language fallback candidates for a given context. | 1 |
LanguageManagerInterface:: |
public | function | Returns a language object from the given language code. | 1 |
LanguageManagerInterface:: |
public | function | Produced the printed name for a language for display. | 1 |
LanguageManagerInterface:: |
public | function | Returns a list of languages set up on the site. | 1 |
LanguageManagerInterface:: |
public | function | Returns the language switch links for the given language type. | 1 |
LanguageManagerInterface:: |
public | function | Returns an array of the available language types. | 1 |
LanguageManagerInterface:: |
public | function | Returns a list of languages set up on the site in their native form. | 1 |
LanguageManagerInterface:: |
public static | function | Some common languages with their English and native names. | 1 |
LanguageManagerInterface:: |
public | function | Checks whether a language is locked. | 1 |
LanguageManagerInterface:: |
public | function | Returns whether or not the site has more than one language added. | 1 |
LanguageManagerInterface:: |
public | function | Resets the given language type or all types if none specified. | 1 |
LanguageManagerInterface:: |
public | function | Sets the configuration override language. | 1 |