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
Keys class Composer\SelfUpdate vendor/composer/composer/src/Composer/SelfUpdate/Keys.php @author Jordi Boggiano <j.boggiano@seld.be> 2
KeyValue class Opentelemetry\Proto\Common\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/KeyValue.php KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc. 4
KeyValueContentEntityStorage class Drupal\Core\Entity\KeyValueStore core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php Provides a key value backend for content entities.
KeyValueDatabaseExpirableFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php Defines the key/value store factory for the database backend. 1
KeyValueDatabaseFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php Defines the key/value store factory for the database backend.
KeyValueEntityStorage class Drupal\Core\Entity\KeyValueStore core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php Provides a key value backend for entities. 1
KeyValueExpirableFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactory.php Defines the key/value store factory.
KeyValueExpirableFactoryInterface interface Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php Defines the expirable key/value store factory interface. 3 8
KeyValueFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php Defines the key/value store factory. 1
KeyValueFactoryInterface interface Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueFactoryInterface.php Defines the key/value store factory interface. 3 19
KeyValueList class Opentelemetry\Proto\Common\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/KeyValueList.php KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly… 1
KeyValueMemoryFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueMemoryFactory.php Defines the key/value store factory for the memory backend.
KeyValueNullExpirableFactory class Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueNullExpirableFactory.php Defines the key/value store factory for the null backend.
KeyValueStoreExpirableInterface interface Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php Defines the interface for expiring data in a key/value store. 2 7
KeyValueStoreInterface interface Drupal\Core\KeyValueStore core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Defines the interface for key/value store implementations. 2 7
KeywordEmulator abstract class PhpParser\Lexer\TokenEmulator vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php 5
KeywordPatch class Prophecy\Doubler\ClassPatch vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/KeywordPatch.php Remove method functionality from the double which will clash with php keywords.
KillSwitch class Drupal\Core\PageCache\ResponsePolicy core/lib/Drupal/Core/PageCache/ResponsePolicy/KillSwitch.php A policy evaluating to static::DENY when the kill switch was triggered. 1
Kind class Google\Protobuf\Field vendor/google/protobuf/src/Google/Protobuf/Field/Kind.php Basic field types.
Known abstract class PHPUnit\Framework\TestStatus vendor/phpunit/phpunit/src/Framework/TestStatus/Known.php @psalm-immutable 9
Known abstract class SebastianBergmann\CodeCoverage\Test\TestSize vendor/phpunit/php-code-coverage/src/TestSize/Known.php @psalm-immutable 3
Known abstract class SebastianBergmann\CodeCoverage\Test\TestStatus vendor/phpunit/php-code-coverage/src/TestStatus/Known.php @psalm-immutable 2
Known abstract class PHPUnit\Framework\TestSize vendor/phpunit/phpunit/src/Framework/TestSize/Known.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 3 1
KnownInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/KnownInstaller.php
KnownValues interface OpenTelemetry\SDK\Common\Configuration vendor/open-telemetry/sdk/Common/Configuration/KnownValues.php "Known values" for OpenTelemetry configurataion variables. Notice: Values specific to the PHP SDK have been added 7
KodiCMSInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php
KohanaInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php
Label class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Label.php Provides a render element for displaying the label for a form element.
Label class Google\Protobuf\Internal\FieldDescriptorProto vendor/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php Protobuf type <code>google.protobuf.FieldDescriptorProto.Label</code>
Label class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php
LabeledStatement class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/LabeledStatement.php A node that represents a labeled statement.
LabelOnlyResourceObject final class Drupal\jsonapi\JsonApiResource core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php Value object decorating a ResourceObject; only its label is available. 2
LabelTooLong class Egulias\EmailValidator\Result\Reason vendor/egulias/email-validator/src/Result/Reason/LabelTooLong.php 1
LangcodeRequiredIfTranslatableValuesConstraint class Drupal\Core\Config\Plugin\Validation\Constraint core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraint.php
LangcodeRequiredIfTranslatableValuesConstraintValidator final class Drupal\Core\Config\Plugin\Validation\Constraint core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/LangcodeRequiredIfTranslatableValuesConstraintValidator.php Validates the LangcodeRequiredIfTranslatableValues constraint.
Language class Drupal\language\Plugin\Condition core/modules/language/src/Plugin/Condition/Language.php Provides a 'Language' condition.
Language class Drupal\Core\TypedData\Plugin\DataType core/lib/Drupal/Core/TypedData/Plugin/DataType/Language.php Defines the 'language' data type.
Language class Drupal\Core\Language core/lib/Drupal/Core/Language/Language.php An object containing the information for an interface language. 10
Language class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Language.php Validates that a value is a valid language Unicode language identifier.
Language class Drupal\language\Plugin\migrate\source core/modules/language/src/Plugin/migrate/source/Language.php Drupal 6/7 language source from database.
Language class Drupal\ckeditor5\Plugin\CKEditor5Plugin core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Language.php CKEditor 5 Language plugin. 1
LanguageAccessControlHandler class Drupal\language core/modules/language/src/LanguageAccessControlHandler.php Defines the access control handler for the language entity type. 1
LanguageAddForm class Drupal\language\Form core/modules/language/src/Form/LanguageAddForm.php Controller for language addition forms. 1
LanguageArgument class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/LanguageArgument.php Defines an argument handler to accept a language.
LanguageBlock class Drupal\language\Plugin\Derivative core/modules/language/src/Plugin/Derivative/LanguageBlock.php Provides language switcher block plugin definitions for all languages. 1
LanguageBlock class Drupal\language\Plugin\Block core/modules/language/src/Plugin/Block/LanguageBlock.php Provides a 'Language switcher' block.
LanguageConfigCollectionNameTrait trait Drupal\language\Config core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php Provides a common trait for working with language override collection names.
LanguageConfigFactoryOverride class Drupal\language\Config core/modules/language/src/Config/LanguageConfigFactoryOverride.php Provides language overrides for the configuration factory. 2
LanguageConfigFactoryOverrideInterface interface Drupal\language\Config core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php Defines the interface for a configuration factory language override object. 1 1
LanguageConfigOverride class Drupal\language\Config core/modules/language/src/Config/LanguageConfigOverride.php Defines language configuration overrides. 4

Pagination

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