Classes, traits, and interfaces - 11.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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 3 | 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 | |||
InlineBlockEntityOperations | class | Drupal\layout_builder | core/ |
Defines a class for reacting to entity events related to Inline Blocks. | 2 | |||
InlineBlockEntityOperationsTest | class | Drupal\Tests\layout_builder\Unit | core/ |
Tests Drupal\layout_builder\InlineBlockEntityOperations. | ||||
InlineBlockPrivateFilesTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Test access to private files in block fields on the Layout Builder. | ||||
InlineBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests that the inline block feature works correctly. | ||||
InlineBlockTestBase | abstract class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Base class for testing inline blocks. | 3 | 1 | ||
InlineBlockUsage | class | Drupal\layout_builder | core/ |
Service class to track inline block usage. | 1 | 2 | ||
InlineBlockUsageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for tracking inline block usage. | 1 | 3 | ||
InlineBlockUsageTest | class | Drupal\Tests\layout_builder\Unit | core/ |
Tests Drupal\layout_builder\InlineBlockUsage. | ||||
InlineBlockUsageTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Class for testing the InlineBlockUsage service. | ||||
InlineFormErrorsHooks | class | Drupal\inline_form_errors\Hook | core/ |
Hook implementations for inline_form_errors. | ||||
InlineFormErrorsServiceProvider | class | Drupal\inline_form_errors | core/ |
Overrides the form_error_handler service to enable inline form errors. | ||||
InlineFormErrorsThemeHooks | class | Drupal\inline_form_errors\Hook | core/ |
Hook implementations for inline_form_errors. | ||||
InlineTemplate | class | Drupal\Core\Render\Element | core/ |
Provides a render element where the user supplies an in-line Twig template. | ||||
InOperator | class | Drupal\views\Plugin\views\filter | core/ |
Filter to handle matching of multiple options selectable via checkboxes. | 8 | 7 | ||
InOperatorTest | class | Drupal\Tests\views\Unit\Plugin\filter | core/ |
Tests Drupal\views\Plugin\views\filter\InOperator. | ||||
InputCollectorInterface | interface | Drupal\Core\Recipe | core/ |
The interface for classes collecting input values for recipes. | 1 | 1 | ||
InputConfigurator | final class | Drupal\Core\Recipe | core/ |
Collects and validates input values for a recipe. | ||||
InputRequired | class | Drupal\views\Plugin\views\exposed_form | core/ |
Exposed form plugin that provides an exposed form with required input. | ||||
InputStreamFileWriter | class | Drupal\file\Upload | core/ |
Writes files from a input stream to a temporary file. | 2 | |||
InputStreamFileWriterInterface | interface | Drupal\file\Upload | core/ |
Uploads files from a stream. | 1 | 2 | ||
InputStreamUploadedFile | final class | Drupal\file\Upload | core/ |
An uploaded file from an input stream. | 2 | |||
InputTest | class | Drupal\KernelTests\Core\Recipe | core/ |
Tests Input. | ||||
Insecure | class | Drupal\editor_test\EditorXssFilter | core/ |
Defines an insecure text editor XSS filter (for testing purposes). | ||||
Insert | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Insert. | ||||
Insert | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Insert. | ||||
Insert | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Insert. | ||||
Insert | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Insert. | ||||
Insert | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted INSERT query. | 4 | 6 | ||
InsertCommand | class | Drupal\Core\Ajax | core/ |
Generic AJAX command for inserting content. | 6 | 7 | ||
InsertDefaultsTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Insert query builder with default values. | ||||
InsertLobTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Insert query builder with LOB fields. | ||||
InsertTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the insert builder. | ||||
InsertTrait | trait | Drupal\Core\Database\Query | core/ |
Provides common functionality for INSERT and UPSERT queries. | ||||
InspectionTest | class | Drupal\KernelTests\Core\Plugin | core/ |
Tests that plugins implementing PluginInspectionInterface can be inspected. | ||||
Inspector | class | Drupal\Component\Assertion | core/ |
Generic inspections for the assert() statement. | 38 |
Pagination
- Previous page
- Page 98
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.