Classes, traits, and interfaces - 9.5.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 1523

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
EditorDialogAccessTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php Test access to the editor dialog forms.
EditorDialogSave class Drupal\editor\Ajax core/modules/editor/src/Ajax/EditorDialogSave.php Provides an AJAX command for saving the contents of an editor dialog. 4
EditorFileReference class Drupal\editor\Plugin\Filter core/modules/editor/src/Plugin/Filter/EditorFileReference.php Provides a filter to track images uploaded via a Text Editor.
EditorFileReferenceFilterTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php Tests Editor module's file reference filter.
EditorFileUsageTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorFileUsageTest.php Tests tracking of file usage by the Text Editor module.
EditorFilterIntegrationTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorFilterIntegrationTest.php Tests integration with filter module.
EditorGetUntransformedTextCommandTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorGetUntransformedTextCommandTest.php Tests the class \Drupal\editor\Ajax\GetUntransformedTextCommand deprecation.
EditorHalJsonAnonTest class Drupal\Tests\hal\Functional\editor core/modules/hal/tests/src/Functional/editor/EditorHalJsonAnonTest.php @group hal @group legacy
EditorHalJsonBasicAuthTest class Drupal\Tests\hal\Functional\editor core/modules/hal/tests/src/Functional/editor/EditorHalJsonBasicAuthTest.php @group hal @group legacy
EditorHalJsonCookieTest class Drupal\Tests\hal\Functional\editor core/modules/hal/tests/src/Functional/editor/EditorHalJsonCookieTest.php @group hal @group legacy
EditorialContentEntityBase abstract class Drupal\Core\Entity core/lib/Drupal/Core/Entity/EditorialContentEntityBase.php Provides a base entity class with extended revision and publishing support. 5 5
EditorImageDialog class Drupal\editor\Form core/modules/editor/src/Form/EditorImageDialog.php Provides an image dialog for text editors. 1 1
EditorImageDialogTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php Tests EditorImageDialog validation and conversion functionality.
EditorIntegrationLoadingTest class Drupal\Tests\quickedit\Functional core/modules/quickedit/tests/src/Functional/EditorIntegrationLoadingTest.php Tests Quick Edit module integration endpoints.
EditorIntegrationTest class Drupal\Tests\quickedit\Kernel core/modules/quickedit/tests/src/Kernel/EditorIntegrationTest.php Tests Edit module integration (Editor module's inline editing support).
EditorInterface interface Drupal\editor core/modules/editor/src/EditorInterface.php Provides an interface defining a text editor entity. 1 31
EditorJsonAnonTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorJsonAnonTest.php @group rest
EditorJsonBasicAuthTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorJsonBasicAuthTest.php @group rest
EditorJsonCookieTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorJsonCookieTest.php @group rest
EditorLinkDialog class Drupal\editor\Form core/modules/editor/src/Form/EditorLinkDialog.php Provides a link dialog for text editors. 1
EditorLoadingTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/EditorLoadingTest.php Tests loading of text editors.
EditorManager class Drupal\editor\Plugin core/modules/editor/src/Plugin/EditorManager.php Configurable text editor manager. 2
EditorManagerTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/EditorManagerTest.php Tests detection of text editors and correct generation of attachments.
EditorMediaDialog class Drupal\media\Form core/modules/media/src/Form/EditorMediaDialog.php Provides a media embed dialog for text editors. 1 1
EditorMediaDialogTest class Drupal\Tests\media\Kernel core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php @coversDefaultClass \Drupal\media\Form\EditorMediaDialog @group media
EditorPluginInterface interface Drupal\editor\Plugin core/modules/editor/src/Plugin/EditorPluginInterface.php Defines an interface for configurable text editors. 1
EditorPrivateFileReferenceFilterTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php Tests Editor module's file reference filter with private files.
EditorResourceTestBase abstract class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php ResourceTestBase for Editor entity. 9 3
EditorSecurityTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/EditorSecurityTest.php Tests XSS protection for content creators when using text editors.
EditorSelectionTest class Drupal\Tests\quickedit\Kernel core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php Tests in-place field editor selection.
EditorSelector class Drupal\quickedit core/modules/quickedit/src/EditorSelector.php Selects an in-place editor (an InPlaceEditor plugin) for a field. 2 2
EditorSelectorInterface interface Drupal\quickedit core/modules/quickedit/src/EditorSelectorInterface.php Interface for selecting an in-place editor (an Editor plugin) for a field. 1
EditorTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/EditorTest.php JSON:API integration test for the "Editor" config entity type.
EditorTestTextLongItem class Drupal\editor_test\Plugin\Field\FieldType core/modules/editor/tests/modules/editor_test/src/Plugin/Field/FieldType/EditorTestTextLongItem.php Plugin implementation of the 'editor_test_text_long' field type.
EditorUploadImageScaleTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/EditorUploadImageScaleTest.php Tests scaling of inline images.
EditorXmlAnonTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorXmlAnonTest.php @group rest
EditorXmlBasicAuthTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorXmlBasicAuthTest.php @group rest
EditorXmlCookieTest class Drupal\Tests\editor\Functional\Rest core/modules/editor/tests/src/Functional/Rest/EditorXmlCookieTest.php @group rest
EditorXssFilterInterface interface Drupal\editor core/modules/editor/src/EditorXssFilterInterface.php Defines an interface for text editor XSS (Cross-site scripting) filters. 2 2
Element abstract class Drupal\Core\Config\Schema core/lib/Drupal/Core/Config/Schema/Element.php Defines a generic configuration element. 3
Element class Drupal\Core\Render core/lib/Drupal/Core/Render/Element.php Provides helper methods for Drupal render elements. 108
Element class Drupal\editor core/modules/editor/src/Element.php Defines a service for Text Editor's render elements. 2
ElementInfoIntegrationTest class Drupal\KernelTests\Core\Render core/tests/Drupal/KernelTests/Core/Render/ElementInfoIntegrationTest.php Tests the element info.
ElementInfoManager class Drupal\Core\Render core/lib/Drupal/Core/Render/ElementInfoManager.php Provides a plugin manager for element plugins. 1 1 2
ElementInfoManagerInterface interface Drupal\Core\Render core/lib/Drupal/Core/Render/ElementInfoManagerInterface.php Collects available render array element types. 1 6
ElementInfoManagerTest class Drupal\Tests\Core\Render core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php @coversDefaultClass \Drupal\Core\Render\ElementInfoManager @group Render
ElementInterface interface Drupal\config_translation\FormElement core/modules/config_translation/src/FormElement/ElementInterface.php Provides an interface for configuration translation form elements. 2
ElementInterface interface Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/ElementInterface.php Provides an interface for render element plugins. 2
ElementsAccessTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php Tests access control for form elements.
ElementsContainerTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/ElementsContainerTest.php Tests the container form element for expected behavior.

Other projects


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