Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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/ |
Exception thrown when a savepoint or transaction name occurs twice. | 1 | |||
TransactionNoActiveException | class | Drupal\Core\Database | core/ |
Exception for when popTransaction() is called with no active transaction. | ||||
TransactionOutOfOrderException | class | Drupal\Core\Database | core/ |
Exception thrown when a rollBack() resulted in other active transactions being rolled-back. | 1 | |||
TransferException | class | GuzzleHttp\Exception | vendor/ |
2 | ||||
TransferException | class | Http\Client\Exception | vendor/ |
Base exception for transfer related exceptions. | 2 | |||
TransferStats | final class | GuzzleHttp | vendor/ |
Represents data at the point after it was transferred either successfully or after a network error. | 3 | |||
Transition | class | Drupal\workflows | core/ |
A transition value object that describes the transition between states. | 3 | |||
TransitionInterface | interface | Drupal\workflows | core/ |
A transition value object that describes the transition between two states. | 1 | 3 | ||
TranslatableAwareTrait | trait | PhpTuf\ComposerStager\Internal\Translation\Factory | vendor/ |
Provides a convenience method for creating translatable objects. | 11 | |||
TranslatableExceptionTrait | trait | PhpTuf\ComposerStager\API\Exception | vendor/ |
Provides features for translatable exceptions. | ||||
TranslatableFactory | final class | PhpTuf\ComposerStager\Internal\Translation\Factory | vendor/ |
Creates translatable objects. | 2 | |||
TranslatableFactoryInterface | interface | PhpTuf\ComposerStager\API\Translation\Factory | vendor/ |
Creates translatable objects. | 2 | 33 | 1 | |
TranslatableInterface | interface | PhpTuf\ComposerStager\API\Translation\Value | vendor/ |
Handles a translatable message. | 2 | 34 | ||
TranslatableInterface | interface | Symfony\Contracts\Translation | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
TranslatableInterface | interface | Drupal\Core\Entity | core/ |
Provides methods for an entity to support translation. | 1 | 4 | ||
TranslatableInterface | interface | Drupal\Core\TypedData | core/ |
Interface for translatable data. | 1 | 11 | ||
TranslatableMarkup | class | Drupal\Core\StringTranslation | core/ |
Provides translatable markup class. | 2 | 572 | ||
TranslatableMessage | final class | PhpTuf\ComposerStager\Internal\Translation\Value | vendor/ |
@package Translation | 1 | |||
TranslatableNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
|||||
TranslatableRevisionableInterface | interface | Drupal\Core\Entity | core/ |
Provides methods for an entity to support revision translation. | 1 | |||
TranslatableRevisionableStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports translatable and revisionable entity types. | 1 | |||
TranslatableStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports translatable entity types. | 1 | |||
TranslatableStringAdapter | final class | Drupal\package_manager | core/ |
An adapter for interoperable string translation. | ||||
TranslatableStringFactory | final class | Drupal\package_manager | core/ |
Creates translatable strings that can interoperate with Composer Stager. | ||||
TranslateEditForm | class | Drupal\locale\Form | core/ |
Defines a translation edit form. | ||||
TranslateFilterForm | class | Drupal\locale\Form | core/ |
Provides a filtered translation edit form. | ||||
TranslateFormBase | abstract class | Drupal\locale\Form | core/ |
Defines the locale user interface translation form base. | 2 | |||
Translation | class | Drupal\Core\Annotation | core/ |
Defines a translatable annotation object. | ||||
TranslationInterface | interface | Drupal\Core\StringTranslation | core/ |
Interface for the translation.manager translation service. | 1 | 47 | ||
TranslationLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entity translations in their row language. | ||||
TranslationLink | class | Drupal\content_translation\Plugin\views\field | core/ |
Provides a translation link for an entity. | ||||
TranslationManager | class | Drupal\Core\StringTranslation | core/ |
Defines a chained translation implementation combining multiple translators. | 1 | |||
TranslationParameters | final class | PhpTuf\ComposerStager\Internal\Translation\Value | vendor/ |
Handles an array of translation parameters. | 2 | |||
TranslationParametersInterface | interface | PhpTuf\ComposerStager\API\Translation\Value | vendor/ |
Handles an array of translation parameters. | 2 | 9 | ||
TranslationsStream | class | Drupal\locale\StreamWrapper | core/ |
Defines a Drupal translations (translations://) stream wrapper class. | 2 | |||
TranslationStatusForm | class | Drupal\locale\Form | core/ |
Provides a translation status form. | 1 | |||
TranslationStatusInterface | interface | Drupal\Core\TypedData | core/ |
Defines an interface for checking the status of an entity translation. | 1 | 2 | ||
TranslationString | class | Drupal\locale | core/ |
Defines the locale translation string object. | ||||
Translator | class | Symfony\Component\CssSelector\XPath | vendor/ |
XPath expression translator interface. | 5 | |||
Translator | final class | PhpTuf\ComposerStager\Internal\Translation\Service | vendor/ |
@package Translation | 1 | 2 | ||
TranslatorInterface | interface | PhpTuf\ComposerStager\API\Translation\Service | vendor/ |
Performs message translation. | 1 | 5 | ||
TranslatorInterface | interface | Drupal\Core\Validation | core/ |
Defines an interface used in validation. | 1 | |||
TranslatorInterface | interface | Symfony\Contracts\Translation | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 12 | ||
TranslatorInterface | interface | Symfony\Component\CssSelector\XPath | vendor/ |
XPath expression translator interface. | 1 | |||
TranslatorInterface | interface | Drupal\Core\StringTranslation\Translator | core/ |
Interface for objects capable of string translation. | 3 | 3 | ||
TranslatorTest | class | Symfony\Contracts\Translation\Test | vendor/ |
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/ |
A trait to help implement TranslatorInterface and LocaleAwareInterface. | 3 | |||
TransliterationInterface | interface | Drupal\Component\Transliteration | core/ |
Defines an interface for classes providing transliteration. | 1 | 4 | ||
Transport | final class | Symfony\Component\Mailer | vendor/ |
@author Fabien Potencier <fabien@symfony.com> @author Konstantin Myakshin <molodchick@gmail.com> | 1 | |||
TransportException | class | Composer\Downloader | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 1 | 24 |