interface ConfigurableLanguageInterface

Same name and namespace in other branches
  1. 11.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface
  2. 10 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface
  3. 8.9.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface

Provides an interface defining a language entity.

Hierarchy

Expanded class hierarchy of ConfigurableLanguageInterface

All classes that implement ConfigurableLanguageInterface

6 files declare their use of ConfigurableLanguageInterface
block.module in core/modules/block/block.module
Controls the visual building blocks a page is constructed with.
ConfigurableLanguage.php in core/modules/language/src/Entity/ConfigurableLanguage.php
LanguageTestController.php in core/modules/language/tests/language_test/src/Controller/LanguageTestController.php
locale.module in core/modules/locale/locale.module
Enables the translation of the user interface to languages other than English.
MigrateLanguageTest.php in core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageTest.php

... See full list

File

core/modules/language/src/ConfigurableLanguageInterface.php, line 11

Namespace

Drupal\language
View source
interface ConfigurableLanguageInterface extends ConfigEntityInterface, LanguageInterface {
  
  /**
   * Sets the name of the language.
   *
   * @param string $name
   *   The human-readable English name of the language.
   *
   * @return $this
   */
  public function setName($name);
  
  /**
   * Sets the weight of the language.
   *
   * @param int $weight
   *   The weight, used to order languages with larger positive weights sinking
   *   items toward the bottom of lists.
   *
   * @return $this
   */
  public function setWeight($weight);

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.