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 |
---|---|---|---|---|---|---|---|---|
JsonEncoderContextBuilder | final class | Symfony\Component\Serializer\Context\Encoder | vendor/ |
A helper providing autocompletion for available JsonEncoder options. | ||||
JsonException | final class | Symfony\Component\HttpFoundation\Exception | vendor/ |
Thrown by Request::toArray() when the content cannot be JSON-decoded. | 1 | |||
JsonException | class | Symfony\Component\BrowserKit\Exception | vendor/ |
1 | 1 | |||
JsonFile | class | Composer\Json | vendor/ |
Reads/writes json files. | 35 | |||
JsonFormatter | Use json_encode or JsonFile::encode() with modern JSON_* flags to configure formatting - this class will be removed in 3.0 |
class | Composer\Json | vendor/ |
Formats json strings used for php < 5.4 because the json_encode doesn't supports the flags JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE in these versions | |||
JsonLoader | class | Composer\Package\Loader | vendor/ |
@author Konstantin Kudryashiv <ever.zet@gmail.com> | ||||
JsonManipulator | class | Composer\Json | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 4 | |||
JsonMatches | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
JsonParameterExpected | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\JsonParameterExpected class | ||||
JsonParser | class | Seld\JsonLint | vendor/ |
Parser class | 3 | |||
JsonPointer | class | JsonSchema\Entity | vendor/ |
@package JsonSchema\Entity | 13 | |||
JsonResponse | class | Symfony\Component\HttpFoundation | vendor/ |
Response represents an HTTP response in JSON format. | 2 | 16 | ||
JsonSerializableNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
A normalizer that uses an objects own JsonSerializable implementation. | ||||
JsonSerializableNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available JsonSerializableNormalizer options. | ||||
JsonValidationException | class | Composer\Json | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 6 | |||
JsonValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Imad ZAIRIG <imadzairig@gmail.com> | ||||
JsOptimizer | class | Drupal\Core\Asset | core/ |
Optimizes a JavaScript asset. | ||||
JSType | class | Google\Protobuf\Internal\FieldOptions | vendor/ |
Protobuf type <code>google.protobuf.FieldOptions.JSType</code> | ||||
JSXAttribute | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX attribute. | ||||
JSXBoundaryElement | abstract class | Peast\Syntax\Node\JSX | vendor/ |
A base class for boundary elements. | 2 | |||
JSXClosingElement | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX closing element tag. | ||||
JSXClosingFragment | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX closing fragment tag. | ||||
JSXElement | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX element. | ||||
JSXEmptyExpression | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX empty expression. | ||||
JSXExpressionContainer | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents an expression container in JSX. | ||||
JSXFragment | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX fragment. | ||||
JSXIdentifier | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX identifier. | ||||
JSXMemberExpression | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX member expression. | ||||
JSXNamespacedName | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX namespaced name. | ||||
JSXOpeningElement | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX opening element tag. | ||||
JSXOpeningFragment | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX opening fragment tag. | ||||
JSXSpreadAttribute | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX spread attribute. | ||||
JSXSpreadChild | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a spread child expression in JSX. | ||||
JSXText | class | Peast\Syntax\Node\JSX | vendor/ |
A node that represents a JSX closing fragment tag. | ||||
JumbledIncrementerSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |
|||||
JumpStatementsSpacingSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
Junit | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
Junit | final class | PHPUnit\TextUI\XmlConfiguration\Logging | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
JUnitConverter | class | Drupal\Core\Test | core/ |
Converts JUnit XML to Drupal's {simpletest} schema. | ||||
JunitXmlLogger | final class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
KanboardInstaller | class | Composer\Installers | vendor/ |
Installer for kanboard plugins | ||||
KeepFilter | class | DeepCopy\Filter | vendor/ |
|||||
Kernel | abstract class | Symfony\Component\HttpKernel | vendor/ |
The Kernel is the heart of the Symfony system. | 3 | |||
KernelEvent | class | Symfony\Component\HttpKernel\Event | vendor/ |
Base class for events dispatched in the HttpKernel component. | 6 | 3 | ||
KernelEvents | final class | Symfony\Component\HttpKernel | vendor/ |
Contains all events thrown in the HttpKernel component. | 65 | |||
KernelInterface | interface | Symfony\Component\HttpKernel | vendor/ |
The Kernel is the heart of the Symfony system. | 1 | 3 | ||
KernelPreHandle | class | Drupal\Core\StackMiddleware | core/ |
Prepares the environment after page caching ran. | ||||
Key | final class | Symfony\Component\Lock | vendor/ |
Key is a container for the state of the locks in stores. | 15 | |||
Key | final class | WebDriver | vendor/ |
WebDriver\Key class | 1 | |||
KeyModifier | final class | Behat\Mink | vendor/ |
4 |