Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TelephoneDefaultWidget | class | Drupal\telephone\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'telephone_default' widget. | ||||
| TelephoneField | class | Drupal\telephone\Plugin\migrate\field\d7 | core/ |
Plugin annotation @MigrateField( id = "telephone", core = {7}, source_module = "telephone", destination_module = "telephone" ) | ||||
| TelephoneFieldRdfaTest | class | Drupal\Tests\rdf\Kernel\Field | core/ |
Tests RDFa output by telephone field formatters. | ||||
| TelephoneFieldTest | class | Drupal\Tests\telephone\Functional | core/ |
Tests the creation of telephone fields. | ||||
| TelephoneItem | class | Drupal\telephone\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'telephone' field type. | 2 | |||
| TelephoneItemTest | class | Drupal\Tests\telephone\Kernel | core/ |
Tests the new entity API for the telephone field type. | ||||
| TelephoneLinkFormatter | class | Drupal\telephone\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'telephone_link' formatter. | ||||
| Template | class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation | core/ |
|||||
| TemporaryArrayObjectThrowingExceptions | class | Drupal\jsonapi\Normalizer\Value | core/ |
An \ArrayObject that throws an exception when used as an ArrayObject. | 1 | |||
| TemporaryJsonapiFileFieldUploader | class | Drupal\jsonapi\Controller | core/ |
Reads data from an upload stream and creates a corresponding file entity. | 1 | 2 | ||
| TemporaryJsonapiFileFieldUploaderTest | class | Drupal\Tests\jsonapi\Kernel\Controller | core/ |
@coversDefaultClass \Drupal\jsonapi\Controller\TemporaryJsonapiFileFieldUploader[[api-linebreak]] @group jsonapi | ||||
| TemporaryQueryGuard | class | Drupal\jsonapi\Access | core/ |
Adds sufficient access control to collection queries. | 1 | |||
| TemporaryQueryTest | class | Drupal\Tests\system\Functional\Database | core/ |
Tests the temporary query functionality. | ||||
| TemporaryStream | class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal temporary (temporary://) stream wrapper class. | 2 | |||
| TempStoreDatabaseTest | class | Drupal\KernelTests\Core\TempStore | core/ |
Tests the temporary object storage system. | ||||
| TempStoreException | class | Drupal\Core\TempStore | core/ |
Thrown by SharedTempStore and PrivateTempStore if they cannot acquire a lock. | 2 | |||
| TempStoreIdentifierInterface | interface | Drupal\layout_builder | core/ |
Provides an interface that allows an object to provide its own tempstore key. | 1 | 1 | ||
| Term | class | Drupal\taxonomy\Entity | core/ |
Defines the taxonomy term entity. | 55 | |||
| Term | in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\views\Plugin\views\argument_validator\Entity instead. |
class | Drupal\taxonomy\Plugin\views\argument_validator | core/ |
Adds legacy vocabulary handling to standard Entity Argument validation. | |||
| 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. | ||||
| TermAccessTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the taxonomy term access permissions. | ||||
| TermAutocompleteTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the autocomplete implementation of the taxonomy class. | ||||
| TermBreadcrumbBuilder | class | Drupal\taxonomy | core/ |
Provides a custom taxonomy breadcrumb builder that uses the term hierarchy. | 2 | |||
| TermCacheTagsTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the Taxonomy term entity's cache tags. | ||||
| TermContextTest | class | Drupal\Tests\taxonomy\Kernel\ContextProvider | core/ |
@coversDefaultClass \Drupal\taxonomy\ContextProvider\TermRouteContext[[api-linebreak]] | ||||
| TermContextualLinksTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests views contextual links on terms. | ||||
| TermDeleteForm | class | Drupal\taxonomy\Form | core/ |
Provides a deletion confirmation form for taxonomy term. | ||||
| TermDisplayConfigurableTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests making taxonomy term base fields' displays configurable. | ||||
| TermEntityQueryTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Verifies operation of a taxonomy-based Entity Query. | ||||
| TermEntityReferenceTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests the settings of restricting term selection to a single vocabulary. | ||||
| TermEntityTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 taxonomy term entity translation source plugin. | ||||
| TermEntityTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests taxonomy term entity translation source plugin. | ||||
| TermForm | class | Drupal\taxonomy | core/ |
Base for handler for taxonomy term edit forms. | 1 | 1 | ||
| TermHalJsonAnonTest | class | Drupal\Tests\hal\Functional\taxonomy | core/ |
@group hal @group legacy | 2 | |||
| TermHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\taxonomy | core/ |
@group hal @group legacy | ||||
| TermHalJsonCookieTest | class | Drupal\Tests\hal\Functional\taxonomy | core/ |
@group hal @group legacy | ||||
| TermHierarchyValidationTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests handling of pending revisions. | ||||
| TermIndexTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the hook implementations that maintain the taxonomy index. | ||||
| TermInterface | interface | Drupal\taxonomy | core/ |
Provides an interface defining a taxonomy term entity. | 1 | 15 | ||
| TermJsonAnonTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| TermJsonBasicAuthTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| TermJsonCookieTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
@group rest | ||||
| TermKernelTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Kernel tests for taxonomy term functions. | ||||
| TermLanguageTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the language functionality for the taxonomy terms. | ||||
| 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. | ||||
| TermLocalizedTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 i18n term localized source plugin. | ||||
| TermLocalizedTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 i18n term localized source plugin. |
Pagination
- Previous page
- Page 161
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.