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 |
---|---|---|---|---|---|---|---|---|
TermLocalizedTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n taxonomy terms source from database. | ||||
TermLocalizedTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n taxonomy terms source from database. | ||||
TermName | class | Drupal\taxonomy\Plugin\views\argument_validator | core/ |
Validates whether a term name is a valid term argument. | ||||
TermName | class | Drupal\taxonomy\Plugin\views\field | core/ |
Displays taxonomy term names and allows converting spaces to hyphens. | ||||
TermNode | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 term/node relationships (current revision) source from database. | 1 | |||
TermNodeRevision | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 term/node relationships (non-current revision) source from database. | ||||
TermRouteContext | class | Drupal\taxonomy\ContextProvider | core/ |
Sets the current taxonomy term as a context on taxonomy term routes. | 2 | |||
TermSelection | class | Drupal\taxonomy\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the taxonomy_term entity type. | ||||
TermStorage | class | Drupal\taxonomy | core/ |
Defines a Controller class for taxonomy terms. | 1 | |||
TermStorageInterface | interface | Drupal\taxonomy | core/ |
Defines an interface for taxonomy_term entity storage classes. | 1 | 3 | ||
TermStorageSchema | class | Drupal\taxonomy | core/ |
Defines the term schema handler. | 1 | |||
TermTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n taxonomy terms source from database. | ||||
TermTranslationHandler | class | Drupal\taxonomy | core/ |
Defines the translation handler for terms. | 1 | |||
TermViewsData | class | Drupal\taxonomy | core/ |
Provides the views data for the taxonomy entity type. | 1 | |||
Ternary | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
TernaryOperatorHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 6 | |||
Test | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
Test | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
Test | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Test | interface | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | 7 | ||
Test | abstract class | PHPUnit\Event\Code | vendor/ |
@psalm-immutable | 2 | 14 | ||
TestBuilder | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestCase | abstract class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 8 | 32 | ||
TestCase | abstract class | SlevomatCodingStandard\Sniffs | vendor/ |
@codeCoverageIgnore | ||||
TestClassesProtectedPropertyModulesRule | class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
@implements Rule<ClassPropertyNode> | ||||
TestClock | final class | OpenTelemetry\API\Common\Time | vendor/ |
@internal OpenTelemetry | ||||
TestCollection | final class | PHPUnit\Event\Code | vendor/ |
@template-implements IteratorAggregate<int, Test> | 4 | |||
TestCollectionIterator | final class | PHPUnit\Event\Code | vendor/ |
@template-implements Iterator<int, Test> | ||||
TestConsideredRiskySubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestConsideredRiskySubscriber | final class | PHPUnit\Logging\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestConsideredRiskySubscriber | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestConsideredRiskySubscriber | final class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestConsideredRiskySubscriber | final class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestData | abstract class | PHPUnit\Event\TestData | vendor/ |
@psalm-immutable | 2 | |||
TestDatabase | class | Drupal\Core\Test | core/ |
Provides helper methods for interacting with the fixture database. | 2 | |||
TestDataCollection | final class | PHPUnit\Event\TestData | vendor/ |
@template-implements IteratorAggregate<int, TestData> | 3 | |||
TestDataCollectionIterator | final class | PHPUnit\Event\TestData | vendor/ |
@template-implements Iterator<int, TestData> | ||||
TestDirectory | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestDirectoryCollection | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TestDirectoryCollectionIterator | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestDirectoryNotFoundException | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
TestDiscovery | class | Drupal\Core\Test | core/ |
Discovers available tests. | ||||
TestDox | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
TestDox | final class | PHPUnit\Event\Code | vendor/ |
@psalm-immutable | ||||
TestDox | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
TestDoxBuilder | final class | PHPUnit\Event\Code | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestErroredSubscriber | final class | PHPUnit\Logging\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestErroredSubscriber | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestErroredSubscriber | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TestErroredSubscriber | final class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit |