Classes, traits, and interfaces - 10.3.x - drupal

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
TermCacheTagsTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermCacheTagsTest.php Tests the Taxonomy term entity's cache tags.
TermContextTest class Drupal\Tests\taxonomy\Kernel\ContextProvider core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php @coversDefaultClass \Drupal\taxonomy\ContextProvider\TermRouteContext[[api-linebreak]]
TermContextualLinksTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php Tests views contextual links on terms.
TermDeleteForm class Drupal\taxonomy\Form core/modules/taxonomy/src/Form/TermDeleteForm.php Provides a deletion confirmation form for taxonomy term.
TermDisplayConfigurableTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TermDisplayConfigurableTest.php Tests making taxonomy term base fields' displays configurable.
TermEntityQueryTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TermEntityQueryTest.php Verifies operation of a taxonomy-based Entity Query.
TermEntityReferenceTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TermEntityReferenceTest.php Tests the settings of restricting term selection to a single vocabulary.
TermEntityTranslation class Drupal\taxonomy\Plugin\migrate\source\d7 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermEntityTranslation.php Drupal 7 taxonomy term entity translation source plugin. 1
TermEntityTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/TermEntityTranslationTest.php Tests taxonomy term entity translation source plugin.
TermForm class Drupal\taxonomy core/modules/taxonomy/src/TermForm.php Base for handler for taxonomy term edit forms. 1 1
TermHierarchyValidationTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TermHierarchyValidationTest.php Tests handling of pending revisions.
TermIndexTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermIndexTest.php Tests the hook implementations that maintain the taxonomy index.
TermInterface interface Drupal\taxonomy core/modules/taxonomy/src/TermInterface.php Provides an interface defining a taxonomy term entity. 1 19
TermJsonAnonTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/TermJsonAnonTest.php @group rest @group #slow
TermJsonBasicAuthTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/TermJsonBasicAuthTest.php @group rest @group #slow
TermJsonCookieTest class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/TermJsonCookieTest.php @group rest @group #slow
TermKernelTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php Kernel tests for taxonomy term functions.
TermLanguageTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php Tests the language functionality for the taxonomy terms.
TermLocalizedTranslation class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php Drupal 6 i18n taxonomy terms source from database.
TermLocalizedTranslation class Drupal\taxonomy\Plugin\migrate\source\d7 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermLocalizedTranslation.php Drupal 7 i18n taxonomy terms source from database.
TermLocalizedTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/TermLocalizedTranslationTest.php Tests D6 i18n term localized source plugin.
TermLocalizedTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/TermLocalizedTranslationTest.php Tests D7 i18n term localized source plugin.
TermName class Drupal\taxonomy\Plugin\views\argument_validator core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php Validates whether a term name is a valid term argument.
TermName class Drupal\taxonomy\Plugin\views\field core/modules/taxonomy/src/Plugin/views/field/TermName.php Displays taxonomy term names and allows converting spaces to hyphens.
TermNameFieldTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TermNameFieldTest.php Tests the term_name field handler.
TermNode class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/TermNode.php Drupal 6 term/node relationships (current revision) source from database. 1
TermNodeRevision class Drupal\taxonomy\Plugin\migrate\source\d6 core/modules/taxonomy/src/Plugin/migrate/source/d6/TermNodeRevision.php Drupal 6 term/node relationships (non-current revision) source from database.
TermNodeTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/TermNodeTest.php Tests d6_term_node source plugin.
TermParentsTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Tests managing taxonomy parents through the user interface.
TermResourceTestBase abstract class Drupal\Tests\taxonomy\Functional\Rest core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php 6
TermRouteContext class Drupal\taxonomy\ContextProvider core/modules/taxonomy/src/ContextProvider/TermRouteContext.php Sets the current taxonomy term as a context on taxonomy term routes. 1 2
TermSelection class Drupal\taxonomy\Plugin\EntityReferenceSelection core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php Provides specific access control for the taxonomy_term entity type.
TermSourceWithVocabularyFilterTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/TermSourceWithVocabularyFilterTest.php Tests the taxonomy term source with vocabulary filter.
TermSourceWithVocabularyFilterTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/TermSourceWithVocabularyFilterTest.php Tests the taxonomy term source with vocabulary filter.
TermStorage class Drupal\taxonomy core/modules/taxonomy/src/TermStorage.php Defines a Controller class for taxonomy terms. 1
TermStorageInterface interface Drupal\taxonomy core/modules/taxonomy/src/TermStorageInterface.php Defines an interface for taxonomy_term entity storage classes. 1 6
TermStorageSchema class Drupal\taxonomy core/modules/taxonomy/src/TermStorageSchema.php Defines the term schema handler.
TermTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/TermTest.php Tests taxonomy term source plugin. 1
TermTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/TermTest.php Tests taxonomy term source plugin. 3
TermTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermTest.php Tests load, save and delete for taxonomy terms.
TermTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/TermTest.php JSON:API integration test for the "Term" content entity type.
TermTranslation class Drupal\taxonomy\Plugin\migrate\source\d7 core/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php Drupal 7 i18n taxonomy terms source from database.
TermTranslationFieldViewTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php Tests the translation of taxonomy terms field on nodes.
TermTranslationHandler class Drupal\taxonomy core/modules/taxonomy/src/TermTranslationHandler.php Defines the translation handler for terms.
TermTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d6 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d6/TermTranslationTest.php Tests taxonomy term source plugin.
TermTranslationTest class Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7 core/modules/taxonomy/tests/src/Kernel/Plugin/migrate/source/d7/TermTranslationTest.php Tests D7 i18n term localized source plugin.
TermTranslationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php Tests for proper breadcrumb translation.
TermTranslationUITest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php Tests the Term Translation UI.
TermTranslationViewsTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php Tests for views translation.
TermValidationTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TermValidationTest.php Tests term validation constraints.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.