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 |
---|---|---|---|---|---|---|---|---|
ExperimentalThemeTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests the installation of experimental 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. | ||||
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 | 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 | |||
ExtendedDiscoveryInterface | interface | Drupal\Tests\Component\Plugin\Discovery | core/ |
|||||
ExtendedForm | class | Drupal\install_form_test\Form | core/ |
Extends the site setting form. | 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", ) | ||||
ExtendingNonInstalledClass | class | Drupal\plugin_test\Plugin\plugin_test\custom_annotation | core/ |
This class does not have a plugin attribute or plugin annotation on purpose. | ||||
Extension | class | Drupal\system\Plugin\migrate\source | core/ |
Drupal 6/7 system data for a legacy extension source from database. | ||||
Extension | class | Drupal\Core\Extension | core/ |
Defines an extension (file) object. | 1 | 42 | ||
ExtensionDiscovery | class | Drupal\Core\Extension | core/ |
Discovers available extensions in the filesystem. | 20 | |||
ExtensionDiscoveryTest | class | Drupal\Tests\Core\Extension | core/ |
Tests discovery of extensions. | ||||
ExtensionExistsConstraint | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Checks that the value is the name of an installed extension. | ||||
ExtensionExistsConstraintValidator | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Validates that a given extension exists. | ||||
ExtensionExistsConstraintValidatorTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests the ExtensionExists constraint validator. | ||||
ExtensionInstallStorage | class | Drupal\Core\Config | core/ |
Storage to access configuration and schema in enabled extensions. | 2 | 2 | ||
ExtensionInstallStorageTest | class | Drupal\Tests\Core\Config | core/ |
@coversDefaultClass \Drupal\Core\Config\ExtensionInstallStorage[[api-linebreak]] @group Config | ||||
ExtensionLifecycle | final class | Drupal\Core\Extension | core/ |
Extension lifecycle. | 18 | |||
ExtensionList | abstract class | Drupal\Core\Extension | core/ |
Provides available extensions. | 6 | 2 | ||
ExtensionListTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ExtensionList[[api-linebreak]] @group Extension | ||||
ExtensionListTestTrait | trait | Drupal\Tests | core/ |
Provides extension list methods. | 2 | |||
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. | ||||
ExtensionNameConstraint | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Checks that the value is a valid extension name. | ||||
ExtensionNameConstraintTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests the ExtensionName constraint. | ||||
ExtensionNameLengthException | class | Drupal\Core\Extension | core/ |
Exception thrown when the extension's name length exceeds the allowed maximum. | 2 | |||
ExtensionNameReservedException | class | Drupal\Core\Extension | core/ |
Exception thrown when the extension's name is already reserved. | 2 | |||
ExtensionPathResolver | class | Drupal\Core\Extension | core/ |
Factory for getting extension lists by type. | 5 | 2 | ||
ExtensionPathResolverTest | class | Drupal\KernelTests\Core\Bootstrap | core/ |
Tests that extension path resolver works correctly. | ||||
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. | ||||
ExtensionVersion | final class | Drupal\Core\Extension | core/ |
Provides an extension version value object. | 5 | |||
ExtensionVersionTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ExtensionVersion[[api-linebreak]] | ||||
ExtensionViewsFieldTest | class | Drupal\Tests\file\Kernel\Views | core/ |
Tests the core Drupal\file\Plugin\views\field\Extension handler. | ||||
ExternalCommandRequirementsTrait | in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal\\TestTools\\Extension\\RequiresComposerTrait instead. |
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[[api-linebreak]] @group Build @group legacy | ||||
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. |
Pagination
- Previous page
- Page 66
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.