Classes, traits, and interfaces - main - 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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
TaxonomyOverviewOverrideHooks class Drupal\taxonomy_overview_override_test\Hook core/modules/taxonomy/tests/modules/taxonomy_overview_override_test/src/Hook/TaxonomyOverviewOverrideHooks.php Hook implementations for taxonomy_overview_override_test.
TaxonomyParentUITest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyParentUITest.php Tests views taxonomy parent plugin UI.
TaxonomyPermissions class Drupal\taxonomy core/modules/taxonomy/src/TaxonomyPermissions.php Provides dynamic permissions of the taxonomy module.
TaxonomyQueryAlterTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php Tests that appropriate query tags are added.
TaxonomyRelationshipTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyRelationshipTest.php Tests taxonomy relationships with parent term and node.
TaxonomyRelationshipTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyRelationshipTest.php Tests taxonomy relationships with parent term and node.
TaxonomyRevisionDeleteTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyRevisionDeleteTest.php Taxonomy term revision delete form test.
TaxonomyRevisionRevertTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyRevisionRevertTest.php Taxonomy term revision form test.
TaxonomyRevisionTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyRevisionTest.php Tests the new_revision setting of taxonomy vocabularies.
TaxonomyRevisionTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TaxonomyRevisionTest.php Tests the new_revision setting of taxonomy vocabularies.
TaxonomyRevisionVersionHistoryTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TaxonomyRevisionVersionHistoryTest.php Taxonomy term version history test.
TaxonomyRevisionVersionHistoryTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyRevisionVersionHistoryTest.php Taxonomy term version history test.
TaxonomyTerm class Drupal\taxonomy\Plugin\views\wizard core/modules/taxonomy/src/Plugin/views/wizard/TaxonomyTerm.php Tests creating taxonomy views with the wizard.
TaxonomyTermArgumentDepthTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTermArgumentDepthTest.php Test the taxonomy term with depth argument.
TaxonomyTermArgumentDepthTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php Tests the taxonomy term with depth argument.
TaxonomyTermArgumentTidFromNodeTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTermArgumentTidFromNodeTest.php Tests the taxonomy term with argument from a node page.
TaxonomyTermArgumentTidFromNodeTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentTidFromNodeTest.php Tests the taxonomy term with argument from a node page.
TaxonomyTermContentModerationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTermContentModerationTest.php Tests taxonomy terms with Content Moderation.
TaxonomyTermDeriverTest class Drupal\Tests\taxonomy\Kernel\Migrate core/modules/taxonomy/tests/src/Kernel/Migrate/TaxonomyTermDeriverTest.php Tests d7 taxonomy term deriver.
TaxonomyTermDisplayConfigurableTestHooks class Drupal\taxonomy_term_display_configurable_test\Hook core/modules/taxonomy/tests/modules/taxonomy_term_display_configurable_test/src/Hook/TaxonomyTermDisplayConfigurableTestHooks.php Hook implementations for taxonomy_term_display_configurable_test.
TaxonomyTermFilterDepthTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTermFilterDepthTest.php Test the taxonomy term with depth filter.
TaxonomyTermHierarchyConstraint class Drupal\taxonomy\Plugin\Validation\Constraint core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraint.php Validation constraint for changing the term hierarchy in pending revisions.
TaxonomyTermHierarchyConstraintValidator class Drupal\taxonomy\Plugin\Validation\Constraint core/modules/taxonomy/src/Plugin/Validation/Constraint/TaxonomyTermHierarchyConstraintValidator.php Constraint validator for changing term parents in pending revisions. 1
TaxonomyTermIndentationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTermIndentationTest.php Ensure that the term indentation works properly.
TaxonomyTermModerationHandler class Drupal\content_moderation\Entity\Handler core/modules/content_moderation/src/Entity/Handler/TaxonomyTermModerationHandler.php Customizations for taxonomy term entities. 1
TaxonomyTermPagerTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTermPagerTest.php Ensures that the term pager works properly.
TaxonomyTermPageVariableDeprecationTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTermPageVariableDeprecationTest.php Tests page variable deprecation.
TaxonomyTermPageVariableDeprecationTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TaxonomyTermPageVariableDeprecationTest.php Tests page variable deprecation.
TaxonomyTermReference class Drupal\taxonomy\Plugin\migrate\field core/modules/taxonomy/src/Plugin/migrate/field/TaxonomyTermReference.php MigrateField Plugin for Drupal 6 & Drupal 7 taxonomy term reference fields. 1
TaxonomyTermReferenceFieldTest class Drupal\Tests\taxonomy\Unit\Plugin\migrate\field core/modules/taxonomy/tests/src/Unit/Plugin/migrate/field/TaxonomyTermReferenceFieldTest.php Tests Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference.
TaxonomyTermViewTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php Tests the taxonomy term view page and its translation.
TaxonomyTestBase abstract class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyTestBase.php Base class for views kernel taxonomy tests. 16
TaxonomyTestBase abstract class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTestBase.php Provides common helper methods for Taxonomy module tests. 20
TaxonomyTestBase abstract class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTestBase.php Base class for all taxonomy tests. 11 1
TaxonomyTestBase abstract class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/TaxonomyTestBase.php Provides common helper methods for Taxonomy module tests. 5
TaxonomyTestHooks class Drupal\taxonomy_test\Hook core/modules/taxonomy/tests/modules/taxonomy_test/src/Hook/TaxonomyTestHooks.php Hook implementations for taxonomy_test.
TaxonomyTestTrait trait Drupal\Tests\taxonomy\Traits core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php Provides common helper methods for Taxonomy module tests. 27
TaxonomyThemeHooks class Drupal\taxonomy\Hook core/modules/taxonomy/src/Hook/TaxonomyThemeHooks.php Hook implementations for taxonomy. 1
TaxonomyTokensHooks class Drupal\taxonomy\Hook core/modules/taxonomy/src/Hook/TaxonomyTokensHooks.php Hook implementations for taxonomy.
TaxonomyTranslationTestTrait trait Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php Provides common testing base for translated taxonomy terms. 4
TaxonomyViewsFieldAccessTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php Tests base field access in Views for the taxonomy entity.
TaxonomyViewsHooks class Drupal\taxonomy\Hook core/modules/taxonomy/src/Hook/TaxonomyViewsHooks.php Hook implementations for taxonomy.
TaxonomyVocabularyArgumentTest class Drupal\Tests\taxonomy\Functional\Views core/modules/taxonomy/tests/src/Functional/Views/TaxonomyVocabularyArgumentTest.php Tests the vocabulary argument.
TaxonomyVocabularyArgumentTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyVocabularyArgumentTest.php Tests the vocabulary argument.
Tel class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Tel.php Provides a form element for entering a telephone number.
TelephoneDefaultWidget class Drupal\telephone\Plugin\Field\FieldWidget core/modules/telephone/src/Plugin/Field/FieldWidget/TelephoneDefaultWidget.php Plugin implementation of the 'telephone_default' widget.
TelephoneField class Drupal\telephone\Plugin\migrate\field\d7 core/modules/telephone/src/Plugin/migrate/field/d7/TelephoneField.php Migrate field plugin for Drupal 7 telephone fields.
TelephoneFieldTest class Drupal\Tests\telephone\Functional core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php Tests the creation of telephone fields.
TelephoneHooks class Drupal\telephone\Hook core/modules/telephone/src/Hook/TelephoneHooks.php Hook implementations for telephone.
TelephoneItem class Drupal\telephone\Plugin\Field\FieldType core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php Plugin implementation of the 'telephone' field type. 2

Other projects


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