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

Breadcrumb

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

function TranslatableInterface::trans

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::trans()

File

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

Class

TranslatableInterface
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Contracts\Translation

Code

public function trans(TranslatorInterface $translator, ?string $locale = null) : string;

API Navigation

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