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

Breadcrumb

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

function TranslatorInterface::getLocale

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/API/Translation/Service/TranslatorInterface.php \PhpTuf\ComposerStager\API\Translation\Service\TranslatorInterface::getLocale()

Returns the default locale.

File

vendor/symfony/translation-contracts/TranslatorInterface.php, line 67

Class

TranslatorInterface
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Contracts\Translation

Code

public function getLocale() : string;

API Navigation

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