138 calls to StringTranslationTrait::t()

AddModerationDeriver::getDerivativeDefinitions in core/modules/content_moderation/src/Plugin/ConfigAction/AddModerationDeriver.php
Gets the definition of all derivatives of a base plugin.
AlreadyInstalledException::__construct in core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php
Constructs a new "already installed" exception.
AnnounceRenderer::render in core/modules/announcements_feed/src/AnnounceRenderer.php
Generates the announcements feed render array.
AssetsStream::getDescription in core/lib/Drupal/Core/StreamWrapper/AssetsStream.php
Returns the description of the stream wrapper for use in the UI.
AssetsStream::getName in core/lib/Drupal/Core/StreamWrapper/AssetsStream.php
Returns the name of the stream wrapper for use in the UI.
BlockContentPermissions::buildPermissions in core/modules/block_content/src/BlockContentPermissions.php
Return all the permissions available for a block type.
BlockContentTest::testOperationLinks in core/modules/block_content/tests/src/Kernel/BlockContentTest.php
Tests the editing links for BlockContentBlock.
BlockPluginTrait::buildConfigurationForm in core/lib/Drupal/Core/Block/BlockPluginTrait.php
Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.
BlockPluginTrait::getPreviewFallbackString in core/lib/Drupal/Core/Block/BlockPluginTrait.php
BooleanItem::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Returns a form for the field-level settings.
Broken::brokenMessage in core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
Generate message with debugging information as to why the block is broken.
BundleConfigImportValidate::onConfigImporterValidate in core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php
Ensures bundles that will be deleted are not in use.
ClearCacheForm::buildForm in core/modules/system/src/Form/ClearCacheForm.php
Form constructor.
ClearCacheForm::submitForm in core/modules/system/src/Form/ClearCacheForm.php
Clears the caches.
ComponentMetadata::__construct in core/lib/Drupal/Core/Theme/Component/ComponentMetadata.php
ComponentMetadata constructor.
ComponentRenderTest::checkEmbedWithNested in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Render a card with slots that include a CTA component.
ComponentRenderTest::checkInvalidSlot in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensure that the slots throw an error for invalid slots.
ComponentRenderTest::checkRenderElementAlters in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensures the alter callbacks work properly.
ComponentRenderTest::checkSlots in core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php
Ensure that the slots allow a render array or a scalar when using the render element.
ConfigFormBase::buildForm in core/lib/Drupal/Core/Form/ConfigFormBase.php
Form constructor.
ConfigFormBase::formatMultipleViolationsMessage in core/lib/Drupal/Core/Form/ConfigFormBase.php
Formats multiple violation messages associated with a single form element.
ConfigFormBase::submitForm in core/lib/Drupal/Core/Form/ConfigFormBase.php
Form submission handler.
ConfigImporter::checkOp in core/lib/Drupal/Core/Config/ConfigImporter.php
Checks that the operation is still valid.
ConfigImporter::processConfiguration in core/lib/Drupal/Core/Config/ConfigImporter.php
Processes a configuration change.
ConfigImporter::processConfigurations in core/lib/Drupal/Core/Config/ConfigImporter.php
Processes configuration as a batch operation.
ConfigImporter::processMissingContent in core/lib/Drupal/Core/Config/ConfigImporter.php
Handles processing of missing content.
ConfigImporter::validate in core/lib/Drupal/Core/Config/ConfigImporter.php
Dispatches validate event for a ConfigImporter object.
ConfigImportSubscriber::onConfigImporterValidate in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates the configuration to be imported.
ConfigImportSubscriber::validateDependencies in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates configuration being imported does not have unmet dependencies.
ConfigImportSubscriber::validateModules in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates module installations and uninstallations.
ConfigImportSubscriber::validateThemes in core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
Validates theme installations and uninstallations.
ConfigManager::diff in core/lib/Drupal/Core/Config/ConfigManager.php
Creates a Diff object using the config data from the two storages.
ConfirmFormBase::getCancelText in core/lib/Drupal/Core/Form/ConfirmFormBase.php
Returns a caption for the link which cancels the action.
ConfirmFormBase::getConfirmText in core/lib/Drupal/Core/Form/ConfirmFormBase.php
Returns a caption for the button that confirms the action.
ConfirmFormBase::getDescription in core/lib/Drupal/Core/Form/ConfirmFormBase.php
Returns additional text to display as a description.
ContentEntityConfirmFormBase::getCancelText in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Returns a caption for the link which cancels the action.
ContentEntityConfirmFormBase::getConfirmText in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Returns a caption for the button that confirms the action.
ContentEntityConfirmFormBase::getDescription in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Returns additional text to display as a description.
ContentEntityForm::addRevisionableFormFields in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Add revision form fields if the entity enabled the UI.
ContentUninstallValidator::validate in core/lib/Drupal/Core/Entity/ContentUninstallValidator.php
Determines the reasons a module can not be uninstalled.
CopyFieldValueTestForm::buildForm in core/modules/system/tests/modules/system_test/src/Form/CopyFieldValueTestForm.php
Form constructor.
DatabaseDriverUninstallValidator::validate in core/lib/Drupal/Core/Extension/DatabaseDriverUninstallValidator.php
Determines the reasons a module can not be uninstalled.
DateFormatter::formatDiff in core/lib/Drupal/Core/Datetime/DateFormatter.php
Formats a time interval between two timestamps.
DateFormatter::formatInterval in core/lib/Drupal/Core/Datetime/DateFormatter.php
Formats a time interval with the requested granularity.
DecimalItem::storageSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Returns a form for the storage-level settings.
DefaultSelectionDeriver::getDerivativeDefinitions in core/lib/Drupal/Core/Entity/Plugin/Derivative/DefaultSelectionDeriver.php
Gets the definition of all derivatives of a base plugin.
DeleteMultipleForm::buildForm in core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php
Form constructor.
DeleteMultipleForm::getConfirmText in core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php
Returns a caption for the button that confirms the action.
DevelopmentSettingsForm::buildForm in core/modules/system/src/Form/DevelopmentSettingsForm.php
Form constructor.
DevelopmentSettingsForm::submitForm in core/modules/system/src/Form/DevelopmentSettingsForm.php
Form submission handler.
DrupalDateTime::format in core/lib/Drupal/Core/Datetime/DrupalDateTime.php
Overrides format().
EmailItem::getConstraints in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
Gets a list of validation constraints.
EmbeddedForm::buildForm in core/modules/field_layout/tests/modules/field_layout_test/src/Form/EmbeddedForm.php
Form constructor.
EntityConfirmFormBase::getCancelText in core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
Returns a caption for the link which cancels the action.
EntityConfirmFormBase::getConfirmText in core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
Returns a caption for the button that confirms the action.
EntityConfirmFormBase::getDescription in core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
Returns additional text to display as a description.
EntityConstraintViolationList::filterByFields in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Filters this violation list by the given fields.
EntityController::addBundleTitle in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Provides a generic add title callback for entities with bundles.
EntityController::addPage in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Displays add links for the available bundles.
EntityController::addTitle in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Provides a generic add title callback for an entity type.
EntityController::deleteTitle in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Provides a generic delete title callback.
EntityController::editTitle in core/lib/Drupal/Core/Entity/Controller/EntityController.php
Provides a generic edit title callback.
EntityCreateDeriver::getDerivativeDefinitions in core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/Deriver/EntityCreateDeriver.php
Gets the definition of all derivatives of a base plugin.
EntityDefinitionUpdateManager::getChangeSummary in core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
Gets a human readable summary of the detected changes.
EntityDeleteActionDeriver::getDerivativeDefinitions in core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityDeleteActionDeriver.php
Gets the definition of all derivatives of a base plugin.
EntityForm::actions in core/lib/Drupal/Core/Entity/EntityForm.php
Returns an array of supported actions for the current entity form.
EntityListBuilder::buildHeader in core/lib/Drupal/Core/Entity/EntityListBuilder.php
Builds the header row for the entity listing.
EntityListBuilder::getDefaultOperations in core/lib/Drupal/Core/Entity/EntityListBuilder.php
Gets this list's default operations.
EntityListBuilder::render in core/lib/Drupal/Core/Entity/EntityListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
EntityMethodDeriver::processMethod in core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/Deriver/EntityMethodDeriver.php
Processes a method to create derivatives.
EntityRevisionViewController::title in core/lib/Drupal/Core/Entity/Controller/EntityRevisionViewController.php
Provides a title callback for a revision of an entity.
EntityType::getGroupLabel in core/lib/Drupal/Core/Entity/EntityType.php
Gets the human-readable name of the entity type group.
EntityTypeRepository::getEntityTypeLabels in core/lib/Drupal/Core/Entity/EntityTypeRepository.php
Builds a list of entity type labels suitable for a Form API options list.
FieldItemList::defaultValuesForm in core/lib/Drupal/Core/Field/FieldItemList.php
Returns a form for the default value input.
FieldStorageReuseForm::buildForm in core/modules/field_ui/src/Form/FieldStorageReuseForm.php
Form constructor.
FieldStorageReuseForm::reuseCallback in core/modules/field_ui/src/Form/FieldStorageReuseForm.php
Callback function to handle re-using an existing field.
FileImageDimensionsConstraintValidator::validate in core/modules/file/src/Plugin/Validation/Constraint/FileImageDimensionsConstraintValidator.php
FileTransferAuthorizeForm::buildForm in core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
Form constructor.
FileTransferAuthorizeForm::validateForm in core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
Form validation handler.
FinalExceptionSubscriber::onException in core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php
Handles exceptions for this subscriber.
FormAjaxSubscriber::onException in core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php
Catches a form AJAX exception and build a response from it.
FormValidator::doValidateForm in core/lib/Drupal/Core/Form/FormValidator.php
Performs validation on form elements.
FormValidator::performRequiredValidation in core/lib/Drupal/Core/Form/FormValidator.php
Performs validation of elements that are not subject to limited validation.
FormValidator::setInvalidTokenError in core/lib/Drupal/Core/Form/FormValidator.php
Sets a form_token error on the given form state.
HelpTopicPluginController::viewHelpTopic in core/modules/help/src/Controller/HelpTopicPluginController.php
Displays a help topic page.
HelpTwigExtension::getTopicLink in core/modules/help/src/HelpTwigExtension.php
Returns a link to a help topic, or the title of the topic.
InstallProfileUninstallValidator::validate in core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php
Determines the reasons a module can not be uninstalled.
IntegerItem::getConstraints in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php
Gets a list of validation constraints.
LayoutForm::buildForm in core/modules/navigation/src/Form/LayoutForm.php
Form constructor.
LocalTasksBlock::blockForm in core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php
MailManager::doMail in core/lib/Drupal/Core/Mail/MailManager.php
Composes and optionally sends an email message.
MaintenanceModeSubscriber::onKernelRequestMaintenance in core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
Returns the site maintenance page if the site is offline.
MaintenanceModeSubscriber::onMaintenanceModeRequest in core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
Returns response when site is in maintenance mode and user is not exempt.
MenuLinkDefaultForm::buildConfigurationForm in core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
Form constructor.
MenuLinksetSettingsForm::buildForm in core/modules/system/src/Form/MenuLinksetSettingsForm.php
Form constructor.
MenuParentFormSelector::parentSelectOptionsTreeWalk in core/lib/Drupal/Core/Menu/MenuParentFormSelector.php
Iterates over all items in the tree to prepare the parents select options.
MessageForm::buildForm in core/modules/migrate/src/Form/MessageForm.php
Form constructor.
MessageForm::submitForm in core/modules/migrate/src/Form/MessageForm.php
Form submission handler.
MigrateMessageController::details in core/modules/migrate/src/Controller/MigrateMessageController.php
Displays a listing of migration messages for the given migration ID.
MigrateMessageController::overview in core/modules/migrate/src/Controller/MigrateMessageController.php
Displays an overview of migrate messages.
MigrateMessageController::overview in core/modules/migrate_drupal_ui/src/Controller/MigrateMessageController.php
Displays an overview of migrate messages.
MigrateMessageController::title in core/modules/migrate/src/Controller/MigrateMessageController.php
Gets the title for the details page.
ModuleExtensionList::ensureRequiredDependencies in core/lib/Drupal/Core/Extension/ModuleExtensionList.php
Marks dependencies of required modules as 'required', recursively.
NavigationContentLinks::addMenuLinks in core/modules/navigation/src/NavigationContentLinks.php
Add links to the Content menu, based on enabled modules.
NoProfilesException::__construct in core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php
Constructs a new "no profiles available" exception.
NumericItemBase::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
Returns a form for the field-level settings.
NumericItemBase::getConstraints in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
Gets a list of validation constraints.
RequiredModuleUninstallValidator::validate in core/lib/Drupal/Core/Extension/RequiredModuleUninstallValidator.php
Determines the reasons a module can not be uninstalled.
RevisionDeleteForm::getConfirmText in core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
Returns a caption for the button that confirms the action.
RevisionDeleteForm::getQuestion in core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
Returns the question to ask the user.
RevisionDeleteForm::submitForm in core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
Form submission handler.
RevisionRevertForm::getConfirmText in core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php
Returns a caption for the button that confirms the action.
RevisionRevertForm::getQuestion in core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php
Returns the question to ask the user.
RevisionRevertForm::submitForm in core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php
Form submission handler.
SelectProfileForm::buildForm in core/lib/Drupal/Core/Installer/Form/SelectProfileForm.php
Form constructor.
SettingsForm::buildForm in core/modules/navigation/src/Form/SettingsForm.php
Form constructor.
SiteConfigureForm::buildForm in core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
Form constructor.
SiteConfigureForm::submitForm in core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
Form submission handler.
SiteSettingsForm::buildForm in core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
Form constructor.
StringItem::getConstraints in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php
Gets a list of validation constraints.
StringItem::storageSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php
Returns a form for the storage-level settings.
TaxonomyTermModerationHandler::enforceRevisionsBundleFormAlter in core/modules/content_moderation/src/Entity/Handler/TaxonomyTermModerationHandler.php
Alters bundle forms to enforce revision handling.
TaxonomyTermModerationHandler::enforceRevisionsEntityFormAlter in core/modules/content_moderation/src/Entity/Handler/TaxonomyTermModerationHandler.php
Alters entity forms to enforce revision handling.
TestActionConfirmForm::getQuestion in core/modules/views/tests/modules/action_bulk_test/src/Form/TestActionConfirmForm.php
Returns the question to ask the user.
TextFieldItemList::defaultValuesFormValidate in core/modules/text/src/Plugin/Field/FieldType/TextFieldItemList.php
Validates the submitted default value.
TitleResolver::getTitle in core/lib/Drupal/Core/Controller/TitleResolver.php
Returns a static or dynamic title for the route.
TreeConfigTargetForm::buildForm in core/modules/system/tests/modules/form_test/src/Form/TreeConfigTargetForm.php
Form constructor.
TreeConfigTargetForm::updateOptions in core/modules/system/tests/modules/form_test/src/Form/TreeConfigTargetForm.php
Updates the options of a select list.
UserLanguageTestForm::buildForm in core/modules/user/tests/modules/user_language_test/src/Form/UserLanguageTestForm.php
Form constructor.
UserLogoutConfirm::getConfirmText in core/modules/user/src/Form/UserLogoutConfirm.php
Returns a caption for the button that confirms the action.
UserLogoutConfirm::getQuestion in core/modules/user/src/Form/UserLogoutConfirm.php
Returns the question to ask the user.
VersionHistoryController::buildDeleteRevisionLink in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
Builds a link to delete an entity revision.
VersionHistoryController::buildRevertRevisionLink in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
Builds a link to revert an entity revision.
VersionHistoryController::buildRow in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
Builds a table row for a revision.
VersionHistoryController::getRevisionDescription in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
Get a description of the revision.
VersionHistoryController::revisionOverview in core/lib/Drupal/Core/Entity/Controller/VersionHistoryController.php
Generates an overview table of revisions of an entity.
WorkspacesHtmlEntityFormController::getContentResult in core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php
Invokes the form and returns the result.
WorkspacesLazyBuilders::renderToolbarTab in core/modules/workspaces/src/WorkspacesLazyBuilders.php
Lazy builder callback for rendering the workspace toolbar tab.

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