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 |
---|---|---|---|---|---|---|---|---|
ElementsFieldsetTest | class | Drupal\Tests\system\Kernel\Form | core/ |
Tests fieldset element rendering and description placement. | ||||
ElementsLabelsTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests form element labels, required markers and associated output. | ||||
ElementsTableSelectTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests the tableselect form element for expected behavior. | ||||
ElementsTableSelectTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the tableselect form element for expected behavior. | ||||
ElementsVerticalTabsTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the vertical_tabs form element for expected behavior. | ||||
ElementTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests building and processing of core form elements. | ||||
ElementTest | class | Drupal\Tests\Core\Render | core/ |
@coversDefaultClass \Drupal\Core\Render\Element @group Render | ||||
ElementValidationTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Various tests of AJAX behavior. | ||||
class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The Email data type. | 1 | ||||
class | Drupal\Core\Render\Element | core/ |
Provides a form input element for entering an email address. | 4 | ||||
class | Drupal\field\Plugin\migrate\field | core/ |
MigrateField Plugin for Drupal 6 and 7 email fields. | |||||
EmailAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Sends an email message. | ||||
EmailActionTest | class | Drupal\KernelTests\Core\Action | core/ |
Tests for the EmailAction plugin. | ||||
EmailConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Count constraint. | ||||
EmailDefaultWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'email_default' widget. | ||||
EmailFieldRdfaTest | class | Drupal\Tests\rdf\Kernel\Field | core/ |
Tests RDFa output by email field formatters. | ||||
EmailFieldTest | class | Drupal\Tests\field\Functional\Email | core/ |
Tests email field functionality. | ||||
EmailItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'email' field type. | 1 | |||
EmailItemTest | class | Drupal\Tests\field\Kernel\Email | core/ |
Tests the new entity API for the email field type. | ||||
EmailTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API email element. | ||||
EmailValidator | class | Drupal\Component\Utility | core/ |
Validates email addresses. | 1 | 2 | ||
EmailValidatorInterface | interface | Drupal\Component\Utility | core/ |
Validates email addresses. | 1 | 4 | ||
EmailValidatorTest | class | Drupal\Tests\Component\Utility | core/ |
Tests the EmailValidator utility class. | ||||
Embed | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles an embed display. | ||||
EmbeddedDataSource | class | Drupal\migrate\Plugin\migrate\source | core/ |
Allows source data to be defined in the configuration of the source plugin. | 1 | 1 | ||
EmbeddedFormWidgetTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ |
Tests media widget nested inside another widget. | ||||
EmphasisTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests emphasis in CKEditor 5. | ||||
EmptyBlockForm | class | Drupal\block_test\PluginForm | core/ |
Provides a form for a block that is empty. | 1 | |||
EmptyHelpSection | class | Drupal\help_page_test\Plugin\HelpSection | core/ |
Provides an empty section for the help page, for testing. | ||||
EmptySource | class | Drupal\migrate\Plugin\migrate\source | core/ |
Source returning a row based on the constants provided. | 1 | 1 | ||
EmptySource | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source returning an empty row with Drupal specific config dependencies. | ||||
EmptyStatementTest | class | Drupal\Tests\Core\Database | core/ |
Tests the empty pseudo-statement class. | ||||
EnabledConfigurablePluginsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
The CKEditor 5 plugin settings. | ||||
EnabledConfigurablePluginsConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Enabled configurable plugin settings validator. | ||||
EndOfTransactionQueriesTest | class | Drupal\KernelTests\Core\Cache | core/ |
Tests that cache tag invalidation queries are delayed to the end of transactions. | ||||
Endpoint | class | Drupal\media\OEmbed | core/ |
Value object for oEmbed provider endpoints. | 1 | |||
EndpointTest | class | Drupal\Tests\media\Unit | core/ |
@coversDefaultClass \Drupal\media\OEmbed\Endpoint | ||||
EnforcedFormResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Handle the EnforcedResponseException and deliver an EnforcedResponse. | 2 | |||
EnforcedResponse | class | Drupal\Core\Form | core/ |
A wrapper containing a response which is to be enforced upon delivery. | 1 | |||
EnforcedResponseException | class | Drupal\Core\Form | core/ |
Custom exception to break out of the main request and enforce a response. | 6 | |||
EngineNyanCatTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests the multi theme engine support. | ||||
EngineTwigTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests Twig-specific theme functionality. | ||||
EnhancerInterface | interface | Drupal\Core\Routing | core/ |
A route enhance service to determine route enhance rules. | 8 | 8 | ||
Entity | class | Drupal\Tests\Component\Annotation\Doctrine\Ticket | core/ |
|||||
Entity | class | core/ |
This class is a near-copy of tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Entity.php, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7. | |||||
Entity | class | Drupal\views\Plugin\views\argument_validator | core/ |
Defines an argument validator plugin for each entity type. | 3 | 4 | ||
Entity | class | Drupal\views\Plugin\views\area | core/ |
Provides an area handler which renders an entity in a certain view mode. | 1 | |||
Entity | abstract class | Drupal\migrate\Plugin\migrate\destination | core/ |
Provides a generic destination to import entities. | 2 | |||
EntityAccess | class | Drupal\workspaces | core/ |
Service wrapper for hooks relating to entity access control. | 1 | |||
EntityAccessCheck | class | Drupal\Core\Entity | core/ |
Provides a generic access checker for entities. | 1 | 2 |
Pagination
- Previous page
- Page 50
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.