Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
EditorialContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base entity class with extended revision and publishing support. | 5 | 5 | ||
EditorImageDialog | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\editor\Form | core/ |
Provides an image dialog for text editors. | 2 | 1 | |
EditorImageDialogTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests EditorImageDialog validation and conversion functionality. | ||||
EditorInterface | interface | Drupal\editor | core/ |
Provides an interface defining a text editor entity. | 1 | 35 | ||
EditorJsonAnonTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
EditorJsonBasicAuthTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
EditorJsonCookieTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
EditorLinkDialog | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\editor\Form | core/ |
Provides a link dialog for text editors. | 1 | 1 | |
EditorLoadingTest | class | Drupal\Tests\editor\Functional | core/ |
Tests loading of text editors. | ||||
EditorManager | class | Drupal\editor\Plugin | core/ |
Configurable text editor manager. | 2 | |||
EditorManagerTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests detection of text editors and correct generation of attachments. | ||||
EditorMediaDialog | in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. |
class | Drupal\media\Form | core/ |
Provides a media embed dialog for text editors. | 2 | 1 | |
EditorMediaDialogTest | class | Drupal\Tests\media\Kernel | core/ |
@coversDefaultClass \Drupal\media\Form\EditorMediaDialog[[api-linebreak]] @group media @group legacy | ||||
EditorPluginInterface | interface | Drupal\editor\Plugin | core/ |
Defines an interface for configurable text editors. | 1 | 1 | ||
EditorPrivateFileReferenceFilterTest | class | Drupal\Tests\editor\Functional | core/ |
Tests Editor module's file reference filter with private files. | ||||
EditorResourceTestBase | abstract class | Drupal\Tests\editor\Functional\Rest | core/ |
ResourceTestBase for Editor entity. | 6 | |||
EditorSanitizeImageUploadSettingsUpdateTest | class | Drupal\Tests\editor\Functional\Update | core/ |
@group Update @group editor | ||||
EditorSecurityTest | class | Drupal\Tests\editor\Functional | core/ |
Tests XSS protection for content creators when using text editors. | ||||
EditorTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Editor" config entity type. | ||||
EditorTestTextLongItem | class | Drupal\editor_test\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'editor_test_text_long' field type. | ||||
EditorUploadImageScaleTest | class | Drupal\Tests\editor\Functional | core/ |
Tests scaling of inline images. | ||||
EditorValidationTest | class | Drupal\Tests\editor\Kernel | core/ |
Tests validation of editor entities. | ||||
EditorXmlAnonTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
EditorXmlBasicAuthTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
EditorXmlCookieTest | class | Drupal\Tests\editor\Functional\Rest | core/ |
@group rest | ||||
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\Core\Render | core/ |
Provides helper methods for Drupal render elements. | 113 | |||
Element | class | Drupal\editor | core/ |
Defines a service for Text Editor's render elements. | 2 | |||
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 | 11 | ||
ElementInfoManagerTest | class | Drupal\Tests\Core\Render | core/ |
@coversDefaultClass \Drupal\Core\Render\ElementInfoManager[[api-linebreak]] @group Render | ||||
ElementInfoTestNumberBuilder | class | Drupal\element_info_test | core/ |
Provides a trusted callback to alter the element_info_test number element. | 2 | |||
ElementInterface | interface | Drupal\Core\Render\Element | core/ |
Provides an interface for render element plugins. | 2 | |||
ElementInterface | interface | Drupal\config_translation\FormElement | core/ |
Provides an interface for configuration translation form elements. | 2 | |||
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\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[[api-linebreak]] @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. |
Pagination
- Previous page
- Page 52
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.