Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TermNameFieldTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Tests the term_name field handler. | ||||
| TermNode | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 term/node relationships (current revision) source from database. | 1 | 1 | ||
| TermNodeRevision | class | Drupal\taxonomy\Plugin\migrate\source\d6 | core/ |
Drupal 6 term/node relationships (non-current revision) source from database. | ||||
| TermNodeTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests d6_term_node source plugin. | ||||
| TermParentsTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests managing taxonomy parents through the user interface. | ||||
| TermResourceTestBase | abstract class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
Resource test base for taxonomy term entity. | 6 | |||
| TermRouteContext | class | Drupal\taxonomy\ContextProvider | core/ |
Sets the current taxonomy term as a context on taxonomy term routes. | 1 | 2 | ||
| TermSelection | class | Drupal\taxonomy\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the taxonomy_term entity type. | ||||
| TermSourceWithVocabularyFilterTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the taxonomy term source with vocabulary filter. | ||||
| TermSourceWithVocabularyFilterTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the taxonomy term source with vocabulary filter. | ||||
| 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 | 4 | ||
| TermStorageSchema | class | Drupal\taxonomy | core/ |
Defines the term schema handler. | 1 | |||
| TermTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests taxonomy term source plugin. | 1 | |||
| TermTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests taxonomy term source plugin. | 3 | |||
| TermTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests load, save and delete for taxonomy terms. | ||||
| TermTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Term" content entity type. | ||||
| TermTranslation | class | Drupal\taxonomy\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n taxonomy terms source from database. | 1 | |||
| TermTranslationFieldViewTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the translation of taxonomy terms field on nodes. | ||||
| TermTranslationFieldViewTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests the translation of taxonomy terms field on nodes. | ||||
| TermTranslationHandler | class | Drupal\taxonomy | core/ |
Defines the translation handler for terms. | 1 | |||
| TermTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 | core/ |
Tests taxonomy term source plugin. | ||||
| TermTranslationTest | class | Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 i18n term localized source plugin. | ||||
| TermTranslationTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests for proper breadcrumb translation. | ||||
| TermTranslationTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests for proper breadcrumb translation. | ||||
| TermTranslationUITest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the Term Translation UI. | ||||
| TermTranslationViewsTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests for views translation. | ||||
| TermTranslationViewsTest | class | Drupal\Tests\taxonomy\Kernel\Views | core/ |
Tests for views translation. | ||||
| TermValidationTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests term validation constraints. | ||||
| TermViewsData | class | Drupal\taxonomy | core/ |
Provides the views data for the taxonomy entity type. | 1 | |||
| TermXmlAnonTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
Tests Term Xml Anon. | ||||
| TermXmlBasicAuthTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
Tests Term Xml Basic Auth. | ||||
| TermXmlCookieTest | class | Drupal\Tests\taxonomy\Functional\Rest | core/ |
Tests Term Xml Cookie. | ||||
| Test | class | Drupal\test_page_test\Controller | core/ |
Defines a test controller for page titles. | ||||
| Test | class | Drupal\media_test_source\Plugin\media\Source | core/ |
Provides test media source. | 5 | |||
| Test1Interface | interface | Drupal\Tests\Component\Utility | core/ |
Provides a test interface. | ||||
| Test2Interface | interface | Drupal\Tests\Component\Utility | core/ |
Provides a different test interface. | ||||
| TestableSqlContentEntityStorage | class | Drupal\KernelTests\Core\Entity\Sql | core/ |
A test subclass of SqlContentEntityStorage. | ||||
| TestAccessBlock | class | Drupal\block_test\Plugin\Block | core/ |
Provides a block to test access. | ||||
| TestAccessCheck | class | Drupal\router_test\Access | core/ |
Access check for test routes. | ||||
| TestAccessCheckInterface | interface | Drupal\Tests\Core\Access | core/ |
Defines an interface with a defined access() method for mocking. | ||||
| TestAccessClass | class | Drupal\Tests\Core\Render | core/ |
Test class for mocking the access callback. | ||||
| TestAction | class | Drupal\action_bulk_test\Plugin\Action | core/ |
Test action. | ||||
| TestActionConfirmForm | class | Drupal\action_bulk_test\Form | core/ |
Confirmation form for 'test_action' action. | 1 | |||
| TestAddForm | class | Drupal\media_library_form_overwrite_test\Form | core/ |
Test add form. | 2 | |||
| TestAjaxBlock | class | Drupal\layout_builder_test\Plugin\Block | core/ |
Provides a 'TestAjax' block. | ||||
| TestAnnotation | class | Drupal\Tests\Component\Annotation\Plugin\Discovery | core/ |
|||||
| TestAttribute | class | Drupal\Tests\Component\Plugin\Discovery | core/ |
|||||
| TestAttribute | class | Drupal\Tests\Core\Template | core/ |
Test class for HTML attributes collector, sanitizer, and renderer. | ||||
| TestAttributes | class | Drupal\router_test\Controller | core/ |
Test controller for method-level Route attributes. | 1 |
Pagination
- Previous page
- Page 191
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.