36 calls to Drupal::translation() in Drupal 10
- BatchUserAction::finishBatch in core/
modules/ views/ tests/ modules/ user_batch_action_test/ src/ Plugin/ Action/ BatchUserAction.php - Finish batch.
- comment_node_search_result in core/
modules/ comment/ comment.module - Implements hook_node_search_result().
- ConfigImporterFieldPurger::process in core/
modules/ field/ src/ ConfigImporterFieldPurger.php - Processes fields targeted for purge as part of a configuration sync.
- content_moderation_workspace_access in core/
modules/ content_moderation/ content_moderation.module - Implements hook_ENTITY_TYPE_access() for the 'workspace' entity type.
- DeleteActionTest::testGetDerivativeDefinitions in core/
tests/ Drupal/ KernelTests/ Core/ Action/ DeleteActionTest.php - @covers \Drupal\Core\Action\Plugin\Action\Derivative\EntityDeleteActionDeriver::getDerivativeDefinitions
- DrupalTest::testTranslation in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the translation() method.
- DrupalTranslator::transChoice in core/
lib/ Drupal/ Core/ Validation/ DrupalTranslator.php - field_form_config_admin_import_form_alter in core/
modules/ field/ field.module - Implements hook_form_FORM_ID_alter().
- FileManagedTestBase::assertFileHookCalled in core/
modules/ file/ tests/ src/ Functional/ FileManagedTestBase.php - Assert that a hook_file_* hook was called a certain number of times.
- FileManagedUnitTestBase::assertFileHookCalled in core/
modules/ file/ tests/ src/ Kernel/ FileManagedUnitTestBase.php - Assert that a hook_file_* hook was called a certain number of times.
- format_size in core/
includes/ common.inc - Generates a string representation for the given byte count.
- hook_node_search_result in core/
modules/ node/ node.api.php - Act on a node being displayed as a search result.
- install_begin_request in core/
includes/ install.core.inc - Begins an installation request, modifying the installation state as needed.
- LocalePluralFormatTest::testGetPluralFormat in core/
modules/ locale/ tests/ src/ Functional/ LocalePluralFormatTest.php - Tests locale_get_plural() and \Drupal::translation()->formatPlural() functionality.
- LocalePluralFormatTest::testPluralEditDateFormatter in core/
modules/ locale/ tests/ src/ Functional/ LocalePluralFormatTest.php - Tests plural editing of DateFormatter strings.
- LocalePluralFormatTest::testPluralEditExport in core/
modules/ locale/ tests/ src/ Functional/ LocalePluralFormatTest.php - Tests plural editing and export functionality.
- locale_translate_batch_finished in core/
modules/ locale/ locale.bulk.inc - Implements callback_batch_finished().
- locale_translation_batch_status_finished in core/
modules/ locale/ locale.batch.inc - Implements callback_batch_finished().
- MediaLibraryWidget::updateWidget in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - AJAX callback to update the widget when the selection changes.
- MediaLibraryWidget::validateItems in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Validates that newly selected items can be added to the widget.
- media_filter_format_edit_form_validate in core/
modules/ media/ media.module - Validate callback to ensure filter order and allowed_html are compatible.
- MigrateUpgradeImportBatch::finished in core/
modules/ migrate_drupal_ui/ src/ Batch/ MigrateUpgradeImportBatch.php - Callback executed when the Migrate Upgrade Import batch process completes.
- NodeType::postSave in core/
modules/ node/ src/ Entity/ NodeType.php - Acts on a saved entity before the insert or update hook is invoked.
- node_requirements in core/
modules/ node/ node.install - Implements hook_requirements().
- node_title_list in core/
modules/ node/ node.module - Gathers a listing of links to nodes.
- PublishActionTest::testGetDerivativeDefinitions in core/
tests/ Drupal/ KernelTests/ Core/ Action/ PublishActionTest.php - @covers \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::getDerivativeDefinitions
- SaveActionTest::testGetDerivativeDefinitions in core/
tests/ Drupal/ KernelTests/ Core/ Action/ SaveActionTest.php - @covers \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::getDerivativeDefinitions
- statistics_node_links_alter in core/
modules/ statistics/ statistics.module - Implements hook_node_links_alter().
- template_preprocess_file_upload_help in core/
modules/ file/ file.field.inc - Prepares variables for file upload help text templates.
- template_preprocess_forums in core/
modules/ forum/ forum.module - Prepares variables for forums templates.
- template_preprocess_forum_list in core/
modules/ forum/ forum.module - Prepares variables for forum list templates.
- update_fetch_data_finished in core/
modules/ update/ update.module - Batch callback: Performs actions when all fetch tasks have been completed.
- update_verify_update_archive in core/
modules/ update/ update.module - Implements hook_verify_update_archive().
- user_user_view_alter in core/
modules/ user/ user.module - Implements hook_ENTITY_TYPE_view_alter() for user entities.
- _node_mass_update_batch_finished in core/
modules/ node/ node.admin.inc - Implements callback_batch_finished().
- _update_manager_check_backends in core/
modules/ update/ update.manager.inc - Checks for file transfer backends and prepares a form fragment about them.