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 |
|---|---|---|---|---|---|---|---|---|
| ImageUploadTest | class | Drupal\Tests\ckeditor5\Functional | core/ |
Test image upload. | 1 | |||
| ImageUrlFormatter | class | Drupal\image\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'image_url' formatter. | ||||
| ImageUrlProviderTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image. | ||||
| ImageUrlTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image. | ||||
| ImageUrlTestBase | abstract class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Provides a base class for testing CKEditor 5 image URL insertion. | 2 | |||
| ImageViewsDataTest | class | Drupal\Tests\image\Kernel\Views | core/ |
Tests image views data. | ||||
| ImageViewsHooks | class | Drupal\image\Hook | core/ |
Hook implementations for image. | ||||
| ImageWidget | class | Drupal\image\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'image_image' widget. | ||||
| ImmutableConfig | class | Drupal\Core\Config | core/ |
Defines the immutable configuration object. | 12 | |||
| ImmutableConfigException | class | Drupal\Core\Config | core/ |
Exception throw when an immutable config object is altered. | 1 | |||
| ImmutableConfigTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ImmutableConfig. | ||||
| ImmutablePathList | final class | Drupal\package_manager | core/ |
Defines a path list that cannot be changed. | 3 | |||
| ImmutablePropertiesConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if config entity properties have been changed. | 1 | |||
| ImmutablePropertiesConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Validates the ImmutableProperties constraint. | 1 | |||
| ImmutablePropertiesConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Immutable Properties Constraint Validator. | ||||
| ImplementationList | class | Drupal\Core\Hook | core/ |
Contains the ordered list of implementations for a hook. | 3 | |||
| ImplementationListTest | class | Drupal\Tests\Core\Hook | core/ |
Tests ImplementationList. | ||||
| ImportableEntityStorageInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for responding to configuration imports. | 1 | 1 | ||
| ImportAwareInterface | interface | Drupal\migrate\Event | core/ |
Interface for plugins that react to pre- or post-import events. | 1 | |||
| Importer | final class | Drupal\Core\DefaultContent | core/ |
A service for handling import of content. | 5 | |||
| ImporterTest | class | Drupal\KernelTests\Core\DefaultContent | core/ |
Tests the Default Content Importer. | ||||
| ImportException | final class | Drupal\Core\DefaultContent | core/ |
Exception thrown when there is an error importing content. | 2 | |||
| ImportForm | class | Drupal\locale\Form | core/ |
Form constructor for the translation import screen. | 1 | |||
| ImportStorageTransformer | final class | Drupal\Core\Config | core/ |
The import storage transformer helps to use the configuration management api. | 3 | 2 | ||
| ImportStorageTransformerTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the import storage transformer. | ||||
| InaccessibleMenuLink | class | Drupal\Core\Menu | core/ |
A menu link plugin for wrapping another menu link, in sensitive situations. | 1 | |||
| InboundPathProcessorInterface | interface | Drupal\Core\PathProcessor | core/ |
Defines an interface for classes that process the inbound path. | 11 | 13 | ||
| IncludedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents the included member of a JSON:API document. | 1 | 3 | ||
| IncludeResolver | class | Drupal\jsonapi | core/ |
Resolves included resources for an entity or collection of entities. | 1 | 2 | ||
| IncompatibleComponentSchema | class | Drupal\Core\Render\Component\Exception | core/ |
Custom exception for incompatible schemas. | 4 | |||
| IncompleteLibraryDefinitionException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception if a library has no CSS/JS/JS setting specified. | 2 | |||
| IncorrectConfigTargetForm | class | Drupal\form_test\Form | core/ |
A form for configuring preferences with AJAX updates. | 1 | |||
| IncrementalForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade Incremental form. | 1 | |||
| IndexPhpTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the handling of requests containing 'index.php'. | ||||
| IndexTid | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Allow taxonomy term ID(s) as argument. | ||||
| IndexTidDepth | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Argument handler for taxonomy terms with depth. | ||||
| IndexTidDepthModifier | class | Drupal\taxonomy\Plugin\views\argument | core/ |
Argument handler for to modify depth for a previous term. | ||||
| InfoAlterTest | class | Drupal\Tests\system\Kernel\System | core/ |
Tests the effectiveness of hook_system_info_alter(). | ||||
| InfoHookDecorator | class | Drupal\Core\Plugin\Discovery | core/ |
Allows info hook implementations to enhance discovered plugin definitions. | 1 | |||
| InfoParser | class | Drupal\Core\Extension | core/ |
Parses extension .info.yml files. | 4 | 2 | ||
| InfoParserDynamic | class | Drupal\Core\Extension | core/ |
Parses dynamic .info.yml files that might change during the page request. | 1 | 1 | ||
| InfoParserException | class | Drupal\Core\Extension | core/ |
An exception thrown by the InfoParser class whilst parsing info.yml files. | 3 | |||
| InfoParserInterface | interface | Drupal\Core\Extension | core/ |
Interface for classes that parses Drupal's info.yml files. | 1 | 2 | ||
| InfoParserUnitTest | class | Drupal\Tests\Core\Extension | core/ |
Tests InfoParser class and exception. | ||||
| InfoWriterTrait | trait | Drupal\TestTools\Extension | core/ |
Writes the info file and ensures the mtime changes. | 3 | |||
| InheritedContextDefinition | class | Drupal\Tests\Core\Plugin\Fixtures | core/ |
Inherited class used for testing. | 1 | |||
| InitialStateTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests the correct initial states are set on install. | ||||
| InjectedService | class | Drupal\new_dependency_test | core/ |
Generic service with a dependency on a service defined in a new module. | 2 | |||
| InlineBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Defines an inline block plugin type. | 1 | |||
| InlineBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides inline block plugin definitions for all block types. | 1 |
Pagination
- Previous page
- Page 100
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.