Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ExcludedModulesEventSubscriberTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests ExcludedModulesEventSubscriber. | ||||
ExecTrait | trait | Drupal\Tests\Composer\Plugin\Scaffold | core/ |
Convenience class for creating fixtures. | 3 | |||
ExecutableException | class | Drupal\Core\Executable | core/ |
Generic executable plugin exception class. | 1 | |||
ExecutableInterface | interface | Drupal\Core\Executable | core/ |
An interface for executable plugins. | 3 | 3 | ||
ExecutableManagerInterface | interface | Drupal\Core\Executable | core/ |
An interface for managers of executable plugins. | 1 | 4 | ||
ExecutablePluginBase | abstract class | Drupal\Core\Executable | core/ |
Provides the basic architecture for executable plugins. | 1 | 1 | ||
ExecuteMigration | class | Drupal\migrate_no_migrate_drupal_test\Controller | core/ |
Custom controller to execute the test migrations. | ||||
ExecutionContext | class | Drupal\Core\TypedData\Validation | core/ |
Defines an execution context class. | ||||
ExecutionContextFactory | class | Drupal\Core\TypedData\Validation | core/ |
Defines an execution factory for the Typed Data validator. | 2 | |||
ExpectDeprecationTest | class | Drupal\Tests | core/ |
@coversDefaultClass \Drupal\Tests\Traits\ExpectDeprecationTrait | ||||
ExpectDeprecationTrait | trait | Drupal\Tests\Traits | core/ |
Adds the ability to dynamically set expected deprecation messages in tests. | 14 | |||
ExperimentalHelpTest | class | Drupal\Tests\help\Functional | core/ |
Verifies help for experimental modules. | ||||
ExperimentalModuleTest | class | Drupal\Tests\system\Functional\Module | core/ |
Tests the installation of modules. | ||||
ExperimentalThemeTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests the installation of themes. | ||||
Explode | class | Drupal\migrate\Plugin\migrate\process | core/ |
Splits the source string into an array of strings, using a delimiter. | 1 | |||
ExplodeTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the Explode process plugin. | ||||
ExportForm | class | Drupal\locale\Form | core/ |
Form for the Gettext translation files export form. | 1 | |||
ExportStorageManager | final class | Drupal\Core\Config | core/ |
The export storage manager dispatches an event for the export storage. | 1 | 2 | ||
ExportStorageManagerTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the export storage manager. | ||||
ExposedFilterAJAXTest | class | Drupal\Tests\views\FunctionalJavascript | core/ |
Tests the basic AJAX functionality of Views exposed forms. | ||||
ExposedFilterBlocksUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests that the additional settings are added to the entity link field. | ||||
ExposedFormCache | class | Drupal\views | core/ |
Caches exposed forms, as they are heavy to generate. | 1 | 2 | ||
ExposedFormCheckboxesTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests exposed forms functionality. | ||||
ExposedFormPluginBase | abstract class | Drupal\views\Plugin\views\exposed_form | core/ |
Base class for Views exposed filter form plugins. | 2 | |||
ExposedFormPluginInterface | interface | Drupal\views\Plugin\views\exposed_form | core/ |
Interface for exposed filter form plugins. | 1 | 1 | ||
ExposedFormRenderTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the exposed form. | ||||
ExposedFormTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests exposed forms functionality. | ||||
ExposedFormUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests exposed forms UI functionality. | ||||
ExtendableInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for extendable query objects. | 1 | |||
ExtendingNonInstalledClass | class | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
Plugin annotation @Plugin( id = "extending_non_installed_class", label = "A plugin whose class is extending from a non-installed module class", color = "pink", ) | ||||
Extension | class | Drupal\system\Plugin\migrate\source | core/ |
Gets system data for a legacy extension. | ||||
Extension | class | Drupal\Core\Extension | core/ |
Defines an extension (file) object. | 39 | |||
ExtensionDiscovery | class | Drupal\Core\Extension | core/ |
Discovers available extensions in the filesystem. | 22 | |||
ExtensionDiscoveryTest | class | Drupal\Tests\Core\Extension | core/ |
Tests discovery of extensions. | ||||
ExtensionInstallStorage | class | Drupal\Core\Config | core/ |
Storage to access configuration and schema in enabled extensions. | 1 | 2 | 2 | |
ExtensionInstallStorageTest | class | Drupal\Tests\Core\Config | core/ |
Tests the Config. | ||||
ExtensionList | abstract class | Drupal\Core\Extension | core/ |
Provides available extensions. | 5 | 1 | ||
ExtensionListTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension | ||||
ExtensionListTrait | trait | Drupal\Core\Installer | core/ |
Provides common functionality for the extension list classes. | ||||
ExtensionMimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Makes possible to guess the MIME type of a file using its extension. | 2 | |||
ExtensionMimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser. | ||||
ExtensionNameLengthException | class | Drupal\Core\Extension | core/ |
Exception thrown when the extension's name length exceeds the allowed maximum. | 2 | |||
ExtensionSerializationTest | class | Drupal\Tests\Core\Extension | core/ |
Tests Extension serialization. | ||||
ExtensionTest | class | Drupal\Tests\system\Kernel\Plugin\migrate\source | core/ |
Tests legacy extension source plugin. | ||||
ExtensionViewsFieldTest | class | Drupal\Tests\file\Kernel\Views | core/ |
Tests the core Drupal\file\Plugin\views\field\Extension handler. | ||||
ExternalCommandRequirementsTrait | trait | Drupal\BuildTests\Framework | core/ |
Allows test classes to require external command line applications. | 1 | |||
ExternalCommandRequirementTest | class | Drupal\BuildTests\Framework\Tests | core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\ExternalCommandRequirementsTrait @group Build | ||||
ExternalFormUrlTest | class | Drupal\KernelTests\Core\Form | core/ |
Ensures that form actions can't be tricked into sending to external URLs. | ||||
ExternalNormalizersTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Asserts external normalizers are handled as expected by the JSON:API module. | ||||
Extract | class | Drupal\migrate\Plugin\migrate\process | core/ |
Extracts a value from an array. | 1 |
Pagination
- Previous page
- Page 62
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.