ConfigurableLanguageInterface.php 744 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Drupal\language;
  3. use Drupal\Core\Config\Entity\ConfigEntityInterface;
  4. use Drupal\Core\Language\LanguageInterface;
  5. /**
  6. * Provides an interface defining a language entity.
  7. */
  8. interface ConfigurableLanguageInterface extends ConfigEntityInterface, LanguageInterface {
  9. /**
  10. * Sets the name of the language.
  11. *
  12. * @param string $name
  13. * The human-readable English name of the language.
  14. *
  15. * @return $this
  16. */
  17. public function setName($name);
  18. /**
  19. * Sets the weight of the language.
  20. *
  21. * @param int $weight
  22. * The weight, used to order languages with larger positive weights sinking
  23. * items toward the bottom of lists.
  24. *
  25. * @return $this
  26. */
  27. public function setWeight($weight);
  28. }