Search for trans

  1. Search 7.x for trans
  2. Search 9.5.x for trans
  3. Search 8.9.x for trans
  4. Search 10.3.x for trans
  5. Search main for trans
  6. Other projects
Title Object type File name Summary
TransportServiceFactoryTest class core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Tests the transport service factory in the child site of browser tests.
TransportServiceFactoryTest.php file core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php
TransportServiceFactoryTest::$defaultTheme property core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php The theme to install as the default for testing.
TransportServiceFactoryTest::$modules property core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Modules to install.
TransportServiceFactoryTest::testDefaultTestMailFactory function core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Test that the transport is set to null://null by default in the child site.
TransportServiceFactoryTrait trait core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php A trait containing helper methods for transport service construction.
TransportServiceFactoryTrait.php file core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php
TransportServiceFactoryTrait::$factories property core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php A list of transport factories.
TransportServiceFactoryTrait::fromDsnObject function core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php Constructs a transport instance given a DSN object.
TransportTest class core/modules/mailer/tests/src/Kernel/TransportTest.php Tests the transport factory service.
TransportTest.php file core/modules/mailer/tests/src/Kernel/TransportTest.php
TransportTest::$modules property core/modules/mailer/tests/src/Kernel/TransportTest.php Modules to install.
TransportTest::providerTestBuiltinFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Provides test data for testBuiltinFactory().
TransportTest::resetMailerDsnConfigOverride function core/modules/mailer/tests/src/Kernel/TransportTest.php Resets a mailer DSN config override.
TransportTest::setUpMailerDsnConfigOverride function core/modules/mailer/tests/src/Kernel/TransportTest.php Sets up a mailer DSN config override.
TransportTest::testBuiltinFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests builtin factory.
TransportTest::testDefaultTestMailFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests default test mail factory.
TransportTest::testMissingFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests missing factory.
TransportTest::testSendmailFactoryAllowedCommand function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests sendmail factory allowed command.
TransportTest::testSendmailFactoryUnlistedCommand function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests sendmail factory unlisted command.
TransportTest::testThirdPartyFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Tests third party factory.
TwigMarkupInterfaceTest::testEmptyTranslation function core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php Tests behavior if a string is translated to become an empty string.
TwigNodeTrans class core/lib/Drupal/Core/Template/TwigNodeTrans.php A class that defines the Twig 'trans' tag for Drupal.
TwigNodeTrans.php file core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigNodeTrans::compile function core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigNodeTrans::compileString function core/lib/Drupal/Core/Template/TwigNodeTrans.php Extracts the text and tokens for the "trans" tag.
TwigNodeTrans::__construct function core/lib/Drupal/Core/Template/TwigNodeTrans.php
TwigThemeTestController::placeholderOutsideTransRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Controller for testing the twig placeholder filter outside of {% trans %}.
TwigThemeTestController::transBlockRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Menu callback for testing translation blocks in a Twig template.
TwigTransTest class core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests Twig "trans" tags.
TwigTransTest.php file core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::$adminUser property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php An administrative user for testing.
TwigTransTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php The theme to install as the default for testing.
TwigTransTest::$languages property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Custom languages.
TwigTransTest::$modules property core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Modules to install.
TwigTransTest::assertTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Asserts Twig trans tags.
TwigTransTest::installLanguages function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Helper function: install languages.
TwigTransTest::poFileContents function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Generate a custom .po file for a specific test language.
TwigTransTest::setUp function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php
TwigTransTest::testEmptyTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests empty Twig "trans" tags.
TwigTransTest::testTransRenderArray function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Testing trans with render array value.
TwigTransTest::testTwigTransTags function core/modules/system/tests/src/Functional/Theme/TwigTransTest.php Tests Twig "trans" tags.
TwigTransTokenParser class core/lib/Drupal/Core/Template/TwigTransTokenParser.php A class that defines the Twig 'trans' token parser for Drupal.
TwigTransTokenParser.php file core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::checkTransString function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Ensure that any nodes that are parsed are only of allowed types.
TwigTransTokenParser::decideForEnd function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect the end of a 'trans' tag.
TwigTransTokenParser::decideForFork function core/lib/Drupal/Core/Template/TwigTransTokenParser.php Detect a 'plural' switch or the end of a 'trans' tag.
TwigTransTokenParser::getTag function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
TwigTransTokenParser::parse function core/lib/Drupal/Core/Template/TwigTransTokenParser.php
twig_theme_test.placeholder_outside_trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig Placeholder outside trans: {{ var | placeholder }}

{% trans %}
Placeholder inside trans: {{ var | placeholder }}
{% endtrans %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.