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 |
---|---|---|---|---|---|---|---|---|
TableMappingInterface | interface | Drupal\Core\Entity\Sql | core/ |
Provides a common interface for mapping field columns to SQL tables. | 1 | 3 | ||
TableRows | class | Symfony\Component\Console\Helper | vendor/ |
@internal | ||||
Tables | class | Drupal\Core\Entity\Query\Sql | core/ |
Adds database tables and fields to the SQL entity query. | 1 | 1 | ||
Tables | class | Drupal\workspaces\EntityQuery | core/ |
Alters entity queries to use a workspace revision instead of the default one. | ||||
Tableselect | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a table with radios or checkboxes in left column. | ||||
TableSeparator | class | Symfony\Component\Console\Helper | vendor/ |
Marks a row as being a separator. | 2 | |||
TablesInterface | interface | Drupal\Core\Entity\Query\Sql | core/ |
Adds tables and fields to the SQL entity query. | 1 | |||
TableSort | class | Drupal\Core\Utility | core/ |
Provides a class for table sorting processing and rendering. | 4 | |||
TableSortExtender | class | Drupal\Core\Database\Query | core/ |
Query extender class for tablesort queries. | 1 | |||
TableStyle | class | Symfony\Component\Console\Helper | vendor/ |
Defines the styles for a Table. | ||||
Tag | interface | phpDocumentor\Reflection\DocBlock | vendor/ |
2 | 26 | |||
Tag | class | Drupal\views\Plugin\views\cache | core/ |
Simple caching of query results for Views displays. | ||||
TagFactory | interface | phpDocumentor\Reflection\DocBlock | vendor/ |
1 | 1 | |||
TaggedContainerInterface | interface | Symfony\Component\DependencyInjection | vendor/ |
TaggedContainerInterface is the interface implemented when a container knows how to deals with tags. | 1 | |||
TaggedHandlersPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Collects services to add/inject them into a consumer service. | 1 | |||
TaggedIterator | since Symfony 7.1, use { |
class | Symfony\Component\DependencyInjection\Attribute | vendor/ |
Autowires an iterator of services based on a tag name. | |||
TaggedIteratorArgument | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
Represents a collection of services found by tag name to lazily iterate over. | 13 | |||
TaggedLocator | since Symfony 7.1, use { |
class | Symfony\Component\DependencyInjection\Attribute | vendor/ |
Autowires a locator of services based on a tag name. | |||
TaggedTemplateExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a tagged template expression. For example: fn`template` | ||||
TaggedValue | final class | Symfony\Component\Yaml\Tag | vendor/ |
@author Nicolas Grekas <p@tchwork.com> @author Guilhem N. <egetick@gmail.com> | 6 | |||
TagHeader | final class | Symfony\Component\Mailer\Header | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
Tags | class | Drupal\Component\Utility | core/ |
Defines a class that can explode and implode tags. | 5 | |||
TagTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
TagWithType | abstract class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
11 | 1 | |||
TaoInstaller | class | Composer\Installers | vendor/ |
An installer to handle TAO extensions. | ||||
Tar | class | Drupal\system\Plugin\Archiver | core/ |
Defines an archiver implementation for .tar files. | ||||
Tar | class | Drupal\Core\Archiver | core/ |
Defines an archiver implementation for .tar files. | 1 | 1 | ||
Tar | class | Composer\Util | vendor/ |
@author Wissem Riahi <wissemr@gmail.com> | 1 | |||
TarDownloader | class | Composer\Downloader | vendor/ |
Downloader for tar files: tar, tar.gz or tar.bz2 | ||||
Target | final class | Doctrine\Common\Annotations\Annotation | vendor/ |
Annotation that can be used to signal to the parser to check the annotation target during the parsing process. | 3 | |||
Target | final class | Symfony\Component\DependencyInjection\Attribute | vendor/ |
An attribute to tell how a dependency is used and hint named autowiring aliases. | 4 | |||
TargetBundle | class | Drupal\taxonomy\Plugin\migrate\process | core/ |
Converts a Drupal 6 vocabulary ID to a target bundle array. | ||||
TargetIdResolver | class | Drupal\serialization\EntityResolver | core/ |
Resolves entities from data that contains an entity target ID. | 2 | |||
TaskQueue | class | GuzzleHttp\Promise | vendor/ |
A task queue that executes tasks in a FIFO order. | ||||
TaskQueueInterface | interface | GuzzleHttp\Promise | vendor/ |
1 | ||||
Tasks | abstract class | Drupal\Core\Database\Install | core/ |
Database installer structure. | 3 | 4 | ||
Tasks | class | Drupal\sqlite\Driver\Database\sqlite\Install | core/ |
Specifies installation tasks for SQLite databases. | ||||
Tasks | class | Drupal\pgsql\Driver\Database\pgsql\Install | core/ |
Specifies installation tasks for PostgreSQL databases. | ||||
Tasks | class | Drupal\mysql\Driver\Database\mysql\Install | core/ |
Specifies installation tasks for MySQL and equivalent databases. | ||||
TastyIgniterInstaller | class | Composer\Installers | vendor/ |
|||||
Taxonomy | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Argument handler for basic taxonomy tid. | ||||
TaxonomyController | class | Drupal\taxonomy\Controller | core/ |
Provides route responses for taxonomy.module. | ||||
TaxonomyHooks | class | Drupal\taxonomy\Hook | core/ |
Hook implementations for taxonomy. | ||||
TaxonomyIndexDepthQueryTrait | trait | Drupal\taxonomy | core/ |
Builds a performant depth subquery and adds it as a join to the query. | 2 | |||
TaxonomyIndexTid | class | Drupal\taxonomy\Plugin\views\field | core/ |
Field handler to display all taxonomy terms of a node. | ||||
TaxonomyIndexTid | class | Drupal\taxonomy\Plugin\views\filter | core/ |
Filter by term id. | 1 | |||
TaxonomyIndexTidDepth | class | Drupal\taxonomy\Plugin\views\filter | core/ |
Filter handler for taxonomy terms with depth. | ||||
TaxonomyPermissions | class | Drupal\taxonomy | core/ |
Provides dynamic permissions of the taxonomy module. | ||||
TaxonomyTerm | class | Drupal\taxonomy\Plugin\views\wizard | core/ |
Tests creating taxonomy views with the wizard. | ||||
TaxonomyTermHierarchyConstraint | class | Drupal\taxonomy\Plugin\Validation\Constraint | core/ |
Validation constraint for changing the term hierarchy in pending revisions. |