Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
InlineIfDeclarationSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures | vendor/ |
|||||
InlinePrint | final class | Twig\Node\Expression | vendor/ |
@internal | ||||
InlineServiceConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
InlineServiceDefinitionsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Inline service definitions where this is possible. | 1 | |||
InlineTemplate | class | Drupal\Core\Render\Element | core/ |
Provides a render element where the user supplies an in-line Twig template. | ||||
InlineVariableCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Checks for the correct usage of inline variable type declarations. | ||||
InMemoryExporter | final class | OpenTelemetry\SDK\Metrics\MetricExporter | vendor/ |
|||||
InMemoryExporter | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
|||||
InMemoryExporter | class | OpenTelemetry\SDK\Logs\Exporter | vendor/ |
|||||
InMemoryExporterFactory | class | OpenTelemetry\SDK\Metrics\MetricExporter | vendor/ |
|||||
InMemoryExporterFactory | class | OpenTelemetry\SDK\Logs\Exporter | vendor/ |
|||||
InMemorySpanExporterFactory | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
|||||
InMemoryStore | class | Symfony\Component\Lock\Store | vendor/ |
InMemoryStore is a PersistingStoreInterface implementation using php-array to manage locks. | ||||
InnerFunctionsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
InOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of multiple options selectable via checkboxes. | 8 | 5 | ||
Input | abstract class | Symfony\Component\Console\Input | vendor/ |
Input is the base class for all concrete Input classes. | 2 | |||
InputArgument | class | Composer\Console\Input | vendor/ |
Backport suggested values definition from symfony/console 6.1+ | 22 | |||
InputArgument | class | Symfony\Component\Console\Input | vendor/ |
Represents a command line argument. | 1 | 23 | ||
InputAwareHelper | abstract class | Symfony\Component\Console\Helper | vendor/ |
An implementation of InputAwareInterface for Helpers. | ||||
InputAwareInterface | interface | Symfony\Component\Console\Input | vendor/ |
InputAwareInterface should be implemented by classes that depends on the Console Input. | 1 | 2 | ||
InputBag | final class | Symfony\Component\HttpFoundation | vendor/ |
InputBag is a container for user input values such as $_GET, $_POST, $_REQUEST, and $_COOKIE. | 6 | |||
InputCollectorInterface | interface | Drupal\Core\Recipe | core/ |
1 | ||||
InputConfigurator | final class | Drupal\Core\Recipe | core/ |
Collects and validates input values for a recipe. | ||||
InputDefinition | class | Symfony\Component\Console\Input | vendor/ |
A InputDefinition represents a set of valid command line arguments and options. | 14 | |||
InputFormField | class | Symfony\Component\DomCrawler\Field | vendor/ |
InputFormField represents an input form field (an HTML input tag). | 1 | |||
InputInterface | interface | Symfony\Component\Console\Input | vendor/ |
InputInterface is the interface implemented by all input classes. | 2 | 77 | ||
InputOption | class | Symfony\Component\Console\Input | vendor/ |
Represents a command line option. | 1 | 32 | ||
InputOption | class | Composer\Console\Input | vendor/ |
Backport suggested values definition from symfony/console 6.1+ | 26 | |||
InputRequired | class | Drupal\views\Plugin\views\exposed_form | core/ |
Exposed form plugin that provides an exposed form with required input. | ||||
InputStream | class | Symfony\Component\Process | vendor/ |
Provides a way to continuously write to the input of a Process until the InputStream is closed. | ||||
InputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
interface | Masterminds\HTML5\Parser | vendor/ |
Interface for stream readers. | 2 | ||
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 | |||
InsecureCertificate | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InsecureCertificate class | ||||
InsecureUnserializeSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that unserialize() limits classes that may be unserialized. | ||||
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. | 3 | 4 | ||
Insert | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Insert. | ||||
Insert | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Insert. | ||||
InsertCommand | class | Drupal\Core\Ajax | core/ |
Generic AJAX command for inserting content. | 6 | 3 | ||
InsertTrait | trait | Drupal\Core\Database\Query | core/ |
Provides common functionality for INSERT and UPSERT queries. | ||||
Inspector | class | Drupal\Component\Assertion | core/ |
Generic inspections for the assert() statement. | 36 | |||
InstallationManager | class | Composer\Installer | vendor/ |
Package operation manager. | 7 | |||
InstallCommand | class | Drupal\Core\Command | core/ |
Installs a Drupal site for local testing/development. | ||||
InstallCommand | class | Composer\Command | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Ryan Weaver <ryan@knplabs.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de> | ||||
InstallConfigurator | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | ||||
InstalledArrayRepository | class | Composer\Repository | vendor/ |
Installed array repository. | 4 | |||
InstalledFilesystemRepository | class | Composer\Repository | vendor/ |
Installed filesystem repository. | ||||
InstalledPackage | final class | Drupal\package_manager | core/ |
A value object that represents an installed Composer package. |