Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 99
  • Page 100
  • Page 101
  • Page 102
  • Page 103
  • Page 104
  • Page 105
  • Page 106
  • Page 107
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal