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 |
---|---|---|---|---|---|---|---|---|
TaxonomyTermHierarchyConstraintValidator | class | Drupal\taxonomy\Plugin\Validation\Constraint | core/ |
Constraint validator for changing term parents in pending revisions. | ||||
TaxonomyTermModerationHandler | class | Drupal\content_moderation\Entity\Handler | core/ |
Customizations for taxonomy term entities. | 1 | |||
TaxonomyTermReference | class | Drupal\taxonomy\Plugin\migrate\field | core/ |
MigrateField Plugin for Drupal 6 & Drupal 7 taxonomy term reference fields. | ||||
TaxonomyTokensHooks | class | Drupal\taxonomy\Hook | core/ |
Hook implementations for taxonomy. | ||||
TaxonomyViewsHooks | class | Drupal\taxonomy\Hook | core/ |
Hook implementations for taxonomy. | ||||
TCheckPlainSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that "@" and "%" placeholders in t()/watchdog() are not escaped twice with check_plain(). | ||||
TeamCity | final class | PHPUnit\TextUI\XmlConfiguration\Logging | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
TeamCityLogger | final class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Tel | class | Drupal\Core\Render\Element | core/ |
Provides a form element for entering a telephone number. | ||||
TelephoneDefaultWidget | class | Drupal\telephone\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'telephone_default' widget. | ||||
TelephoneField | class | Drupal\telephone\Plugin\migrate\field\d7 | core/ |
|||||
TelephoneHooks | class | Drupal\telephone\Hook | core/ |
Hook implementations for telephone. | ||||
TelephoneItem | class | Drupal\telephone\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'telephone' field type. | 1 | |||
TelephoneLinkFormatter | class | Drupal\telephone\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'telephone_link' formatter. | ||||
Template | abstract class | Twig | vendor/ |
Default base class for compiled templates. | 6 | |||
Template | final class | SebastianBergmann\Template | vendor/ |
9 | ||||
Template | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {template tag in a Docblock. | 1 | |||
TemplateCovariant | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {template-covariant tag in a Docblock. | 1 | |||
TemplateDirIterator | class | Twig\Util | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
TemplateElement | class | Peast\Syntax\Node | vendor/ |
A node that represents a template element. For example `foo` and `bar` in: `foo${exp}bar` | ||||
TemplateExtends | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {template-extends tag in a Docblock. | 1 | |||
TemplateExtendsFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
TemplateFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
TemplateImplements | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {template-implements tag in a Docblock. | 1 | |||
TemplateImplementsFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
TemplateLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a template literal. For example: `this is a ${test()} template` | ||||
TemplateLoader | trait | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
TemplateTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
5 | ||||
TemplateVariable | class | Twig\Node\Expression\Variable | vendor/ |
5 | ||||
TemplateWrapper | final class | Twig | vendor/ |
Exposes a template to userland. | 4 | |||
TempNameExpression | class | Twig\Node\Expression | vendor/ |
2 | 3 | |||
Temporality | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
Metric aggregation temporality. | 11 | |||
TemporaryArrayObjectThrowingExceptions | class | Drupal\jsonapi\Normalizer\Value | core/ |
An \ArrayObject that throws an exception when used as an ArrayObject. | 1 | |||
TemporaryQueryGuard | class | Drupal\jsonapi\Access | core/ |
Adds sufficient access control to collection queries. | 1 | |||
TemporaryStream | class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal temporary (temporary://) stream wrapper class. | ||||
TempStoreException | class | Drupal\Core\TempStore | core/ |
Thrown by SharedTempStore and PrivateTempStore if they cannot acquire a lock. | ||||
TempStoreIdentifierInterface | interface | Drupal\layout_builder | core/ |
Provides an interface that allows an object to provide its own tempstore key. | 1 | 1 | ||
TentativeTypes | class | Symfony\Component\ErrorHandler\Internal | vendor/ |
This class has been generated by extract-tentative-return-types.php. | 1 | |||
Term | class | Drupal\taxonomy\Entity | core/ |
Defines the taxonomy term entity. | 5 | |||
Term | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 taxonomy term source from database. | 1 | |||
Term | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 taxonomy term source from database. | 2 | |||
TermAccessControlHandler | class | Drupal\taxonomy | core/ |
Defines the access control handler for the taxonomy term entity type. | 1 | |||
TermBreadcrumbBuilder | class | Drupal\taxonomy | core/ |
Provides a custom taxonomy breadcrumb builder that uses the term hierarchy. | 2 | |||
TermDeleteForm | class | Drupal\taxonomy\Form | core/ |
Provides a deletion confirmation form for taxonomy term. | 1 | |||
TermEntityTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 taxonomy term entity translation source plugin. | ||||
TermForm | class | Drupal\taxonomy | core/ |
Base for handler for taxonomy term edit forms. | 1 | |||
TerminableInterface | interface | Symfony\Component\HttpKernel | vendor/ |
Terminable extends the Kernel request/response cycle with dispatching a post response event after sending the response and before shutting down the kernel. | 5 | 4 | ||
Terminal | class | Symfony\Component\Console | vendor/ |
5 | ||||
TerminateEvent | final class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows to execute logic after a response was sent. | 7 | |||
TermInterface | interface | Drupal\taxonomy | core/ |
Provides an interface defining a taxonomy term entity. | 1 | 3 |