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 |
---|---|---|---|---|---|---|---|---|
IssnValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether the value is a valid ISSN. | ||||
Issue | final class | PHPUnit\TestRunner\TestResult\Issues | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Issue | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
IsSuperUserCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the IsSuperUserCacheContext service, for "super user or not" caching. | ||||
IsTrue | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is true. | ||||
IsTrue | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
IsTrueValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
IsType | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
IsWritable | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Item | class | Drupal\Core\Render\Element | core/ |
Provides a display-only form element with an optional title and description. | ||||
ItemList | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
A generic list class. | 1 | 2 | ||
IterableType | final class | SebastianBergmann\Type | vendor/ |
|||||
Iterable_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing iterable type | 1 | |||
Iterator | final class | SebastianBergmann\FileIterator | vendor/ |
@template-extends FilterIterator<int, string, AppendIterator> | ||||
Iterator | final class | SebastianBergmann\CodeCoverage\Node | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
IteratorArgument | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
Represents a collection of values to lazily iterate over. | 1 | 13 | ||
ItopInstaller | class | Composer\Installers | vendor/ |
|||||
JavaScriptError | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\JavaScriptError class | ||||
JavaScriptLintSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug | vendor/ |
|||||
JoinPluginBase | class | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 4 | 1 | ||
JoinPluginInterface | interface | Drupal\views\Plugin\views\join | core/ |
Represents a join and creates the SQL necessary to implement the join. | 1 | |||
JoinStringsSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Strings | vendor/ |
|||||
JS | class | PHP_CodeSniffer\Tokenizers | vendor/ |
|||||
JsAssetController | class | Drupal\system\Controller | core/ |
Defines a controller to serve Javascript aggregates. | ||||
JsCollectionGrouper | class | Drupal\Core\Asset | core/ |
Groups JavaScript assets. | ||||
JsCollectionOptimizerLazy | class | Drupal\Core\Asset | core/ |
Optimizes JavaScript assets. | ||||
JsCollectionRenderer | class | Drupal\Core\Asset | core/ |
Renders JavaScript assets. | ||||
JSHintSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Debug | vendor/ |
|||||
JSLintSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Debug | vendor/ |
|||||
Json | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value has valid JSON syntax. | ||||
Json | class | Drupal\Component\Serialization | core/ |
Default serialization for JSON. | 35 | 1 | ||
Json | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Json | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
JsonApiDocumentTopLevel | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents a JSON:API document's "top level". | 6 | |||
JsonApiDocumentTopLevelNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes the top-level document according to the JSON:API specification. | 2 | |||
JsonapiHooks | class | Drupal\jsonapi\Hook | core/ |
Hook implementations for jsonapi. | ||||
JsonapiMaintenanceModeSubscriber | class | Drupal\jsonapi\EventSubscriber | core/ |
Maintenance mode subscriber for JSON:API requests. | 2 | |||
JsonApiRequestValidator | class | Drupal\jsonapi\EventSubscriber | core/ |
Subscriber that validates the query parameter names on a JSON:API request. | 2 | |||
JsonapiServiceProvider | class | Drupal\jsonapi | core/ |
Adds 'api_json' as known format and prevents its use in the REST module. | ||||
JsonApiSettingsForm | class | Drupal\jsonapi\Form | core/ |
Configure JSON:API settings for this site. | 1 | |||
JsonApiSpec | class | Drupal\jsonapi | core/ |
Defines constants used for compliance with the JSON:API specification. | 6 | |||
JsonConfigSource | class | Composer\Config | vendor/ |
JSON Configuration Source | 4 | |||
JsonDecode | class | Symfony\Component\Serializer\Encoder | vendor/ |
Decodes JSON data. | 2 | |||
JsonDecoder | class | PhpParser | vendor/ |
|||||
JsonDecodingException | class | JsonSchema\Exception | vendor/ |
Wrapper for the JsonDecodingException | 1 | |||
JsonDescriptor | class | Symfony\Component\Console\Descriptor | vendor/ |
JSON descriptor. | 1 | |||
JsonEncode | class | Symfony\Component\Serializer\Encoder | vendor/ |
Encodes JSON data. | 2 | |||
JsonEncoder | class | Symfony\Component\Serializer\Encoder | vendor/ |
Encodes JSON data. | 1 | 3 | ||
JsonEncoder | class | Drupal\serialization\Encoder | core/ |
Adds 'ajax' to the supported content types of the JSON encoder. | 1 | 1 | 2 | |
JsonEncoder | class | Drupal\jsonapi\Encoder | core/ |
Encodes JSON:API data. | 2 |