Classes, traits, and interfaces - 10.3.x - drupal
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 |
|---|---|---|---|---|---|---|---|---|
| Tags | class | Drupal\Component\Utility | core/ |
Defines a class that can explode and implode tags. | 10 | |||
| TagsTest | class | Drupal\Tests\Core\Common | core/ |
Tests explosion and implosion of autocomplete tags. | ||||
| TagTest | class | Drupal\Tests\views_ui\Kernel | core/ |
Tests the views ui tagging functionality. | ||||
| 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 | 3 | ||
| 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 | |||
| TarTest | class | Drupal\KernelTests\Core\Archiver | core/ |
@coversDefaultClass \Drupal\Core\Archiver\Tar[[api-linebreak]] @group tar | ||||
| Tasks | in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. |
class | Drupal\Core\Database\Driver\sqlite\Install | core/ |
Specifies installation tasks for SQLite databases. | 1 | ||
| Tasks | in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. |
class | Drupal\Core\Database\Driver\mysql\Install | core/ |
Specifies installation tasks for MySQL and equivalent databases. | 1 | ||
| Tasks | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql\Install | core/ |
Specifies installation tasks for PostgreSQL databases. | 1 | ||
| Tasks | abstract class | Drupal\Core\Database\Install | core/ |
Database installer structure. | 8 | 9 | ||
| Tasks | class | Drupal\Core\Database\Driver\CoreFake\Install | core/ |
1 | 1 | |||
| Tasks | class | Drupal\Driver\Database\CoreFake\Install | core/ |
1 | ||||
| Tasks | class | Drupal\Driver\Database\fake\Install | core/ |
1 | ||||
| Tasks | class | Drupal\driver_missing_dependency_test\Driver\Database\MissingDependency\Install | core/ |
Specifies fake installation tasks for test. | ||||
| Tasks | class | Drupal\core_fake\Driver\Database\CoreFake\Install | core/ |
Specifies installation tasks for CoreFake. | ||||
| Tasks | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Install | core/ |
Specifies installation tasks for CoreFakeWithAllCustomClasses. | ||||
| Tasks | class | Drupal\mysql\Driver\Database\mysql\Install | core/ |
Specifies installation tasks for MySQL and equivalent databases. | 4 | 6 | ||
| Tasks | class | Drupal\sqlite\Driver\Database\sqlite\Install | core/ |
Specifies installation tasks for SQLite databases. | 2 | 6 | ||
| Tasks | class | Drupal\pgsql\Driver\Database\pgsql\Install | core/ |
Specifies installation tasks for PostgreSQL databases. | 3 | 3 | ||
| Tasks | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\database_statement_monitoring_test\sqlite\Install | core/ |
||||
| Tasks | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\database_statement_monitoring_test\mysql\Install | core/ |
||||
| Tasks | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\database_statement_monitoring_test\pgsql\Install | core/ |
||||
| Tasks | class | Drupal\driver_test\Driver\Database\DrivertestMysql\Install | core/ |
Specifies installation tasks for MySQL test databases. | 1 | |||
| Tasks | class | Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Install | core/ |
Specifies installation tasks for MySQL test databases. | ||||
| Tasks | class | Drupal\driver_test\Driver\Database\DrivertestPgsql\Install | core/ |
Specifies installation tasks for PostgreSQL databases. | ||||
| Taxonomy | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Argument handler for basic taxonomy tid. | 1 | 1 | ||
| TaxonomyController | class | Drupal\taxonomy\Controller | core/ |
Provides route responses for taxonomy.module. | ||||
| TaxonomyDefaultArgumentTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Tests the representative node relationship for terms. | ||||
| TaxonomyDefaultArgumentTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests the representative node relationship for terms. | ||||
| TaxonomyFieldAllTermsTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests the "All terms" taxonomy term field handler. | ||||
| TaxonomyFieldFilterTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests taxonomy field filters with translations. | ||||
| TaxonomyFieldTidTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Tests the taxonomy term TID field handler. | ||||
| TaxonomyFieldVidTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Tests the taxonomy term VID field handler. | ||||
| TaxonomyGlossaryTest | class | Drupal\Tests\views\Functional | core/ |
Tests glossary functionality of taxonomy views. | ||||
| TaxonomyImageTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests image upload on taxonomy terms. | ||||
| 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. | ||||
| TaxonomyIndexTidFilterTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Test the taxonomy term index filter. | ||||
| TaxonomyIndexTidUiTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests the taxonomy index filter handler UI. | ||||
| TaxonomyLocalTasksTest | class | Drupal\Tests\taxonomy\Unit\Menu | core/ |
Tests existence of taxonomy local tasks. | ||||
| TaxonomyParentUITest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests views taxonomy parent plugin UI. | ||||
| TaxonomyPermissions | class | Drupal\taxonomy | core/ |
Provides dynamic permissions of the taxonomy module. | ||||
| TaxonomyQueryAlterTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests that appropriate query tags are added. | ||||
| TaxonomyRelationshipTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests taxonomy relationships with parent term and node. | ||||
| TaxonomyRevisionDeleteTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Taxonomy term revision delete form test. | ||||
| TaxonomyRevisionRevertTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Taxonomy term revision form test. |
Pagination
- Previous page
- Page 168
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.