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 |
|---|---|---|---|---|---|---|---|---|
| EditorXmlBasicAuthTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Xml Basic Auth. | ||||
| EditorXmlCookieTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
Tests Editor Xml Cookie. | ||||
| EditorXssFilterInterface | interface | Drupal\editor | core/ |
Defines an interface for text editor XSS (Cross-site scripting) filters. | 2 | 2 | ||
| Element | abstract class | Drupal\Core\Config\Schema | core/ |
Defines a generic configuration element. | 3 | |||
| Element | class | Drupal\editor | core/ |
Defines a service for Text Editor's render elements. | 2 | |||
| Element | class | Drupal\Core\Render | core/ |
Provides helper methods for Drupal render elements. | 125 | |||
| ElementInfoIntegrationTest | class | Drupal\KernelTests\Core\Render | core/ |
Tests the element info. | ||||
| ElementInfoManager | class | Drupal\Core\Render | core/ |
Provides a plugin manager for element plugins. | 1 | 1 | 2 | |
| ElementInfoManagerInterface | interface | Drupal\Core\Render | core/ |
Collects available render array element types. | 1 | 17 | ||
| ElementInfoManagerTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\ElementInfoManager. | ||||
| ElementInfoTestHooks | class | Drupal\element_info_test\Hook | core/ |
Hook implementations for element_info_test. | ||||
| ElementInfoTestNumberBuilder | class | Drupal\element_info_test | core/ |
Provides a trusted callback to alter the element_info_test number element. | 2 | |||
| ElementInterface | interface | Drupal\config_translation\FormElement | core/ |
Provides an interface for configuration translation form elements. | 2 | |||
| ElementInterface | interface | Drupal\Core\Render\Element | core/ |
Provides an interface for render element plugins. | 2 | 1 | ||
| ElementsAccessTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests access control for form elements. | ||||
| ElementsContainerTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the container form element for expected behavior. | ||||
| 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\Functional\Form | core/ |
Tests the tableselect form element for expected behavior. | ||||
| ElementsTableSelectTest | class | Drupal\Tests\system\FunctionalJavascript\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. | ||||
| ElementsVerticalTabsWithSummaryTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests that titles and summaries in vertical-tabs form elements are set correctly. | ||||
| ElementTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests building and processing of core form elements. | ||||
| ElementTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Element. | ||||
| ElementValidationTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Various tests of AJAX behavior. | ||||
| class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The Email data type. | 1 | 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. | 1 | |||
| EmailDefaultWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'email_default' widget. | ||||
| 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 | 3 | ||
| 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. | ||||
| EmptyAccessPolicy | class | Drupal\Tests\Core\Session | core/ |
A test access policy class that does nothing. | ||||
| EmptyBlockForm | class | Drupal\block_test\PluginForm | core/ |
Provides a form for a block that is empty. | 2 | |||
| 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. | 2 | 2 | ||
| EmptySource | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source returning an empty row with Drupal specific config dependencies. | |||
| EmptySource | class | Drupal\migrate_multiple_provider_test\Plugin\migrate\source | core/ |
Source for testing multiple providers. | 1 | 1 | ||
| EnabledConfigurablePluginsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
The CKEditor 5 plugin settings. |
Pagination
- Previous page
- Page 57
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.