Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocaleAwareInterface.php

interface LocaleAwareInterface

Hierarchy

  • interface \Symfony\Contracts\Translation\LocaleAwareInterface

Expanded class hierarchy of LocaleAwareInterface

All classes that implement LocaleAwareInterface

3 files declare their use of LocaleAwareInterface
AsciiSlugger.php in vendor/symfony/string/Slugger/AsciiSlugger.php
LocaleAwareListener.php in vendor/symfony/http-kernel/EventListener/LocaleAwareListener.php
ValidatorBuilder.php in vendor/symfony/validator/ValidatorBuilder.php

File

vendor/symfony/translation-contracts/LocaleAwareInterface.php, line 14

Namespace

Symfony\Contracts\Translation
View source
interface LocaleAwareInterface {
    
    /**
     * Sets the current locale.
     *
     * @return void
     *
     * @throws \InvalidArgumentException If the locale contains invalid characters
     */
    public function setLocale(string $locale);
    
    /**
     * Returns the current locale.
     */
    public function getLocale() : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
LocaleAwareInterface::getLocale public function Returns the current locale. 1
LocaleAwareInterface::setLocale public function Sets the current locale. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal