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

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

Introduction to classes

A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.

See also

Objected-oriented programming conventions

File

core/core.api.php, line 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
TransactionNameNonUniqueException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionNameNonUniqueException.php Exception thrown when a savepoint or transaction name occurs twice. 1
TransactionNoActiveException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionNoActiveException.php Exception for when popTransaction() is called with no active transaction.
TransactionOutOfOrderException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionOutOfOrderException.php Exception thrown when a rollBack() resulted in other active transactions being rolled-back. 1
TransferException class GuzzleHttp\Exception vendor/guzzlehttp/guzzle/src/Exception/TransferException.php 2
TransferException class Http\Client\Exception vendor/php-http/httplug/src/Exception/TransferException.php Base exception for transfer related exceptions. 2
TransferStats final class GuzzleHttp vendor/guzzlehttp/guzzle/src/TransferStats.php Represents data at the point after it was transferred either successfully or after a network error. 3
Transition class Drupal\workflows core/modules/workflows/src/Transition.php A transition value object that describes the transition between states. 3
TransitionInterface interface Drupal\workflows core/modules/workflows/src/TransitionInterface.php A transition value object that describes the transition between two states. 1 3
TranslatableAwareTrait trait PhpTuf\ComposerStager\Internal\Translation\Factory vendor/php-tuf/composer-stager/src/Internal/Translation/Factory/TranslatableAwareTrait.php Provides a convenience method for creating translatable objects. 11
TranslatableExceptionTrait trait PhpTuf\ComposerStager\API\Exception vendor/php-tuf/composer-stager/src/API/Exception/TranslatableExceptionTrait.php Provides features for translatable exceptions.
TranslatableFactory final class PhpTuf\ComposerStager\Internal\Translation\Factory vendor/php-tuf/composer-stager/src/Internal/Translation/Factory/TranslatableFactory.php Creates translatable objects. 2
TranslatableFactoryInterface interface PhpTuf\ComposerStager\API\Translation\Factory vendor/php-tuf/composer-stager/src/API/Translation/Factory/TranslatableFactoryInterface.php Creates translatable objects. 2 33 1
TranslatableInterface interface PhpTuf\ComposerStager\API\Translation\Value vendor/php-tuf/composer-stager/src/API/Translation/Value/TranslatableInterface.php Handles a translatable message. 2 34
TranslatableInterface interface Symfony\Contracts\Translation vendor/symfony/translation-contracts/TranslatableInterface.php @author Nicolas Grekas <p@tchwork.com> 1
TranslatableInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/TranslatableInterface.php Provides methods for an entity to support translation. 1 4
TranslatableInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/TranslatableInterface.php Interface for translatable data. 1 11
TranslatableMarkup class Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Provides translatable markup class. 2 572
TranslatableMessage final class PhpTuf\ComposerStager\Internal\Translation\Value vendor/php-tuf/composer-stager/src/Internal/Translation/Value/TranslatableMessage.php @package Translation 1
TranslatableNormalizer final class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/TranslatableNormalizer.php
TranslatableRevisionableInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/TranslatableRevisionableInterface.php Provides methods for an entity to support revision translation. 1
TranslatableRevisionableStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/TranslatableRevisionableStorageInterface.php A storage that supports translatable and revisionable entity types. 1
TranslatableStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/TranslatableStorageInterface.php A storage that supports translatable entity types. 1
TranslatableStringAdapter final class Drupal\package_manager core/modules/package_manager/src/TranslatableStringAdapter.php An adapter for interoperable string translation.
TranslatableStringFactory final class Drupal\package_manager core/modules/package_manager/src/TranslatableStringFactory.php Creates translatable strings that can interoperate with Composer Stager.
TranslateEditForm class Drupal\locale\Form core/modules/locale/src/Form/TranslateEditForm.php Defines a translation edit form.
TranslateFilterForm class Drupal\locale\Form core/modules/locale/src/Form/TranslateFilterForm.php Provides a filtered translation edit form.
TranslateFormBase abstract class Drupal\locale\Form core/modules/locale/src/Form/TranslateFormBase.php Defines the locale user interface translation form base. 2
Translation class Drupal\Core\Annotation core/lib/Drupal/Core/Annotation/Translation.php Defines a translatable annotation object.
TranslationInterface interface Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslationInterface.php Interface for the translation.manager translation service. 1 47
TranslationLanguageRenderer class Drupal\views\Entity\Render core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php Renders entity translations in their row language.
TranslationLink class Drupal\content_translation\Plugin\views\field core/modules/content_translation/src/Plugin/views/field/TranslationLink.php Provides a translation link for an entity.
TranslationManager class Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslationManager.php Defines a chained translation implementation combining multiple translators. 1
TranslationParameters final class PhpTuf\ComposerStager\Internal\Translation\Value vendor/php-tuf/composer-stager/src/Internal/Translation/Value/TranslationParameters.php Handles an array of translation parameters. 2
TranslationParametersInterface interface PhpTuf\ComposerStager\API\Translation\Value vendor/php-tuf/composer-stager/src/API/Translation/Value/TranslationParametersInterface.php Handles an array of translation parameters. 2 9
TranslationsStream class Drupal\locale\StreamWrapper core/modules/locale/src/StreamWrapper/TranslationsStream.php Defines a Drupal translations (translations://) stream wrapper class. 2
TranslationStatusForm class Drupal\locale\Form core/modules/locale/src/Form/TranslationStatusForm.php Provides a translation status form. 1
TranslationStatusInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php Defines an interface for checking the status of an entity translation. 1 2
TranslationString class Drupal\locale core/modules/locale/src/TranslationString.php Defines the locale translation string object.
Translator class Symfony\Component\CssSelector\XPath vendor/symfony/css-selector/XPath/Translator.php XPath expression translator interface. 5
Translator final class PhpTuf\ComposerStager\Internal\Translation\Service vendor/php-tuf/composer-stager/src/Internal/Translation/Service/Translator.php @package Translation 1 2
TranslatorInterface interface PhpTuf\ComposerStager\API\Translation\Service vendor/php-tuf/composer-stager/src/API/Translation/Service/TranslatorInterface.php Performs message translation. 1 5
TranslatorInterface interface Drupal\Core\Validation core/lib/Drupal/Core/Validation/TranslatorInterface.php Defines an interface used in validation. 1
TranslatorInterface interface Symfony\Contracts\Translation vendor/symfony/translation-contracts/TranslatorInterface.php @author Fabien Potencier <fabien@symfony.com> 1 12
TranslatorInterface interface Symfony\Component\CssSelector\XPath vendor/symfony/css-selector/XPath/TranslatorInterface.php XPath expression translator interface. 1
TranslatorInterface interface Drupal\Core\StringTranslation\Translator core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php Interface for objects capable of string translation. 3 3
TranslatorTest class Symfony\Contracts\Translation\Test vendor/symfony/translation-contracts/Test/TranslatorTest.php Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms.
TranslatorTrait trait Symfony\Contracts\Translation vendor/symfony/translation-contracts/TranslatorTrait.php A trait to help implement TranslatorInterface and LocaleAwareInterface. 3
TransliterationInterface interface Drupal\Component\Transliteration core/lib/Drupal/Component/Transliteration/TransliterationInterface.php Defines an interface for classes providing transliteration. 1 4
Transport final class Symfony\Component\Mailer vendor/symfony/mailer/Transport.php @author Fabien Potencier <fabien@symfony.com> @author Konstantin Myakshin <molodchick@gmail.com> 1
TransportException class Composer\Downloader vendor/composer/composer/src/Composer/Downloader/TransportException.php @author Jordi Boggiano <j.boggiano@seld.be> 1 24

Pagination

  • First page
  • Previous page
  • …
  • Page 191
  • Page 192
  • Page 193
  • Page 194
  • Page 195
  • Page 196
  • Page 197
  • Page 198
  • Page 199
  • …
  • Next page
  • Last page

API Navigation

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