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

Namesort descending Type Namespace Location Description Direct uses Use statements Strings
TrackChangesTest class Drupal\migrate_track_changes_test\Plugin\migrate\source core/modules/migrate/tests/modules/migrate_track_changes_test/src/Plugin/migrate/source/TrackChangesTest.php Source plugin for migration track changes tests.
TrackerNode class Drupal\tracker\Plugin\migrate\source\d7 core/modules/tracker/src/Plugin/migrate/source/d7/TrackerNode.php Drupal 7 tracker node source from database.
TrackerNodeAccessTest class Drupal\Tests\tracker\Functional core/modules/tracker/tests/src/Functional/TrackerNodeAccessTest.php Tests for private node access on /tracker.
TrackerNodeTest class Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php Tests D7 tracker node source plugin.
TrackerRecentContentLinkTest class Drupal\Tests\tracker\Functional core/modules/tracker/tests/src/Functional/TrackerRecentContentLinkTest.php Tests recent content link.
TrackerUser class Drupal\tracker\Plugin\migrate\source\d7 core/modules/tracker/src/Plugin/migrate/source/d7/TrackerUser.php Drupal 7 tracker user source from database.
TrackerUserTest class Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php Tests D7 tracker user source plugin.
TrackerUserUidTest class Drupal\Tests\tracker\Kernel\Views core/modules/tracker/tests/src/Kernel/Views/TrackerUserUidTest.php Tests the tracker user uid handlers.
TraitAccessTest class Drupal\Tests\system\Unit core/modules/system/tests/src/Unit/TraitAccessTest.php Test whether traits are autoloaded during PHPUnit discovery time.
TransactionCommitFailedException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionCommitFailedException.php Exception thrown when a commit() function fails.
TransactionException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionException.php Exception thrown by an error in a database transaction. 5
TransactionExplicitCommitNotAllowedException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionExplicitCommitNotAllowedException.php Exception to deny attempts to explicitly manage transactions.
TransactionManager class Drupal\mysql\Driver\Database\mysql core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php MySql implementation of TransactionManagerInterface.
TransactionManager class Drupal\pgsql\Driver\Database\pgsql core/modules/pgsql/src/Driver/Database/pgsql/TransactionManager.php PostgreSql implementation of TransactionManagerInterface.
TransactionManager class Drupal\sqlite\Driver\Database\sqlite core/modules/sqlite/src/Driver/Database/sqlite/TransactionManager.php SQLite implementation of TransactionManagerInterface.
TransactionManagerInterface interface Drupal\Core\Database\Transaction core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php Interface for the database transaction manager classes. 2
TransactionNameNonUniqueException class Drupal\Core\Database core/lib/Drupal/Core/Database/TransactionNameNonUniqueException.php Exception thrown when a savepoint or transaction name occurs twice.
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.
TransactionTest class Drupal\Tests\sqlite\Kernel\sqlite core/modules/sqlite/tests/src/Kernel/sqlite/TransactionTest.php Tests transaction for the SQLite driver.
TransactionTest class Drupal\Tests\pgsql\Kernel\pgsql core/modules/pgsql/tests/src/Kernel/pgsql/TransactionTest.php Tests transaction for the PostgreSQL driver.
TransactionTest class Drupal\Tests\mysql\Kernel\mysql core/modules/mysql/tests/src/Kernel/mysql/TransactionTest.php Tests transaction for the MySQL driver.
TransformedConfigExportImportUITest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/TransformedConfigExportImportUITest.php Tests the user interface for importing/exporting transformed configuration.
Transition class Drupal\workflows core/modules/workflows/src/Transition.php A transition value object that describes the transition between states. 5
TransitionInterface interface Drupal\workflows core/modules/workflows/src/TransitionInterface.php A transition value object that describes the transition between two states. 1 3
TransitionTest class Drupal\Tests\workflows\Unit core/modules/workflows/tests/src/Unit/TransitionTest.php @coversDefaultClass \Drupal\workflows\Transition
TranslatableFieldTest class Drupal\Tests\layout_builder\Kernel core/modules/layout_builder/tests/src/Kernel/TranslatableFieldTest.php Tests Layout Builder with a translatable layout field.
TranslatableInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/TranslatableInterface.php Interface for translatable data. 1 10
TranslatableInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/TranslatableInterface.php Provides methods for an entity to support translation. 1 4
TranslatableMarkup class Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php Provides translatable markup class. 2 111
TranslatableMarkupTest class Drupal\Tests\Core\StringTranslation core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests the TranslatableMarkup class.
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
TranslatedViewTest class Drupal\Tests\views_ui\Functional core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php Tests that translated strings in views UI don't override original strings.
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. 1
TranslationInterface interface Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslationInterface.php Interface for the translation.manager translation service. 2 56
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
TranslationLinkTest class Drupal\Tests\content_translation\Functional\Views core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php Tests the content translation overview link field handler.
TranslationManager class Drupal\Core\StringTranslation core/lib/Drupal/Core/StringTranslation/TranslationManager.php Defines a chained translation implementation combining multiple translators. 1 4 2
TranslationManagerTest class Drupal\Tests\Core\StringTranslation core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php @coversDefaultClass \Drupal\Core\StringTranslation\TranslationManager @group StringTranslation
TranslationsStream class Drupal\locale\StreamWrapper core/modules/locale/src/StreamWrapper/TranslationsStream.php Defines a Drupal translations (translations://) stream wrapper class. 2
TranslationStatusInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/TranslationStatusInterface.php Defines an interface for checking the status of an entity translation. 2
TranslationsTest class Drupal\Tests\media_library\FunctionalJavascript core/modules/media_library/tests/src/FunctionalJavascript/TranslationsTest.php Tests media library for translatable media.
TranslationString class Drupal\locale core/modules/locale/src/TranslationString.php Defines the locale translation string object. 1
TranslationStringTest class Drupal\KernelTests\Core\StringTranslation core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php Tests the TranslatableMarkup class.

Pages

Other projects