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

Breadcrumb

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

interface TranslatableInterface

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/API/Translation/Value/TranslatableInterface.php \PhpTuf\ComposerStager\API\Translation\Value\TranslatableInterface
  2. 11.1.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface
  3. 11.1.x core/lib/Drupal/Core/Entity/TranslatableInterface.php \Drupal\Core\Entity\TranslatableInterface

@author Nicolas Grekas <p@tchwork.com>

Hierarchy

  • interface \Symfony\Contracts\Translation\TranslatableInterface

Expanded class hierarchy of TranslatableInterface

All classes that implement TranslatableInterface

1 file declares its use of TranslatableInterface
TranslatableNormalizer.php in vendor/symfony/serializer/Normalizer/TranslatableNormalizer.php

File

vendor/symfony/translation-contracts/TranslatableInterface.php, line 17

Namespace

Symfony\Contracts\Translation
View source
interface TranslatableInterface {
    public function trans(TranslatorInterface $translator, ?string $locale = null) : string;

}

Members

Title Sort descending Modifiers Object type Summary
TranslatableInterface::trans public function

API Navigation

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