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. Other projects
Title Object type File name Summary
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 %}
twig_theme_test.trans.html.twig file core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.trans.html.twig {# Test trans tag with string argument. #}
<div>
{% trans 'Hello sun.' %}
</div>

{# Test trans tag with string argument and context #}
<div>
{% trans 'Hello sun.' with {'context':…
UnitTestCase::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.
UnmetDependenciesException::getTranslatedMessage function core/lib/Drupal/Core/Config/UnmetDependenciesException.php Gets a translated message from the exception.
UpdaterFileTransferException class core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php Defines a child class of Drupal\Core\Updater\UpdaterException.
UpdaterFileTransferException.php file core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php
update_manager_local_transfers_allowed function core/modules/update/update.manager.inc Determines if file transfers will be performed locally.
update_test_filetransfer_info function core/modules/update/tests/modules/update_test/update_test.module Implements hook_filetransfer_info().
UriDependentTestImageEffect::transformDimensions function core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/UriDependentTestImageEffect.php Determines the dimensions of the styled image.
UrlEncode::transform function core/modules/migrate/src/Plugin/migrate/process/UrlEncode.php Performs the associated process.
UrlEncodeTest::doTransform function core/modules/migrate/tests/src/Unit/process/UrlEncodeTest.php Perform the urlencode process plugin over the given value.
UrlTransformRelativeTest class core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php Tests URL transform to relative.
UrlTransformRelativeTest.php file core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php
UrlTransformRelativeTest::$modules property core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php Modules to install.
UrlTransformRelativeTest::providerFileUrlTransformRelative function core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php
UrlTransformRelativeTest::testFileUrlTransformRelative function core/tests/Drupal/KernelTests/Core/File/UrlTransformRelativeTest.php Tests transformRelative() function.
UsageTest::testFileUsageWithEntityTranslation function core/modules/file/tests/src/Kernel/UsageTest.php Tests file usage with translated entities.
user.config_translation.yml file core/modules/user/user.config_translation.yml core/modules/user/user.config_translation.yml
UserCancelTest::testUserAnonymizeTranslations function core/modules/user/tests/src/Functional/UserCancelTest.php Delete account and anonymize all content and it's translations.
UserEntityTranslation class core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php Drupal 7 user entity translations source from database.
UserEntityTranslation.php file core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php
UserEntityTranslation::fields function core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php Returns available fields on the source.
UserEntityTranslation::getIds function core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php Defines the source fields uniquely identifying a source row.
UserEntityTranslation::prepareRow function core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php Adds additional data to the row.
UserEntityTranslation::query function core/modules/user/src/Plugin/migrate/source/d7/UserEntityTranslation.php
UserEntityTranslationTest class core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserEntityTranslationTest.php Tests D7 user entity translation source plugin.
UserEntityTranslationTest.php file core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserEntityTranslationTest.php
UserEntityTranslationTest::$modules property core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserEntityTranslationTest.php Modules to install.
UserEntityTranslationTest::providerSource function core/modules/user/tests/src/Kernel/Plugin/migrate/source/d7/UserEntityTranslationTest.php
UserLangcode::transform function core/modules/user/src/Plugin/migrate/process/UserLangcode.php Performs the associated process.
UserTranslationUITest class core/modules/user/tests/src/Functional/UserTranslationUITest.php Tests the User Translation UI.
UserTranslationUITest.php file core/modules/user/tests/src/Functional/UserTranslationUITest.php
UserTranslationUITest::$defaultCacheContexts property core/modules/user/tests/src/Functional/UserTranslationUITest.php Default cache contexts expected on a non-translated entity.
UserTranslationUITest::$defaultTheme property core/modules/user/tests/src/Functional/UserTranslationUITest.php The theme to install as the default for testing.
UserTranslationUITest::$modules property core/modules/user/tests/src/Functional/UserTranslationUITest.php Modules to install.
UserTranslationUITest::$name property core/modules/user/tests/src/Functional/UserTranslationUITest.php The user name of the test user.
UserTranslationUITest::doTestTranslationEdit function core/modules/user/tests/src/Functional/UserTranslationUITest.php Tests edit content translation.
UserTranslationUITest::getNewEntityValues function core/modules/user/tests/src/Functional/UserTranslationUITest.php Returns an array of entity field values to be tested.
UserTranslationUITest::getTranslatorPermissions function core/modules/user/tests/src/Functional/UserTranslationUITest.php Returns an array of permissions needed for the translator.
UserTranslationUITest::setUp function core/modules/user/tests/src/Functional/UserTranslationUITest.php
UserTranslationUITest::testTranslatedUserDeletion function core/modules/user/tests/src/Functional/UserTranslationUITest.php Tests translated user deletion.
UserUpdate7002::transform function core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php Performs the associated process.

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