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
ExtensionNameConstraint class Drupal\Core\Extension\Plugin\Validation\Constraint core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionNameConstraint.php Checks that the value is a valid extension name.
ExtensionNameLengthException class Drupal\Core\Extension core/lib/Drupal/Core/Extension/ExtensionNameLengthException.php Exception thrown when the extension's name length exceeds the allowed maximum.
ExtensionNameReservedException class Drupal\Core\Extension core/lib/Drupal/Core/Extension/ExtensionNameReservedException.php Exception thrown when the extension's name is already reserved.
ExtensionPathResolver class Drupal\Core\Extension core/lib/Drupal/Core/Extension/ExtensionPathResolver.php Factory for getting extension lists by type. 3
ExtensionRange class Google\Protobuf\Internal\DescriptorProto vendor/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code>
ExtensionRangeOptions class Google\Protobuf\Internal vendor/google/protobuf/src/Google/Protobuf/Internal/ExtensionRangeOptions.php Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code>
ExtensionSet final class Twig vendor/twig/twig/src/ExtensionSet.php @author Fabien Potencier <fabien@symfony.com>
ExtensionTrait trait Symfony\Component\DependencyInjection\Extension vendor/symfony/dependency-injection/Extension/ExtensionTrait.php @author Yonel Ceruto <yonelceruto@gmail.com> 1
ExtensionVersion final class Drupal\Core\Extension core/lib/Drupal/Core/Extension/ExtensionVersion.php Provides an extension version value object. 6
ExtraAttributesException class Symfony\Component\Serializer\Exception vendor/symfony/serializer/Exception/ExtraAttributesException.php ExtraAttributesException. 2
Extract class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/Extract.php Extracts a value from an array.
ExtractingEventDispatcher class Symfony\Component\EventDispatcher\DependencyInjection vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php @internal
ExtraFieldBlock class Drupal\layout_builder\Plugin\Block core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php Provides a block that renders an extra field from an entity. 1
ExtraFieldBlockCacheTagInvalidator class Drupal\layout_builder\Cache core/modules/layout_builder/src/Cache/ExtraFieldBlockCacheTagInvalidator.php Provides a cache tag invalidator that clears the block cache. 2
ExtraFieldBlockDeriver class Drupal\layout_builder\Plugin\Derivative core/modules/layout_builder/src/Plugin/Derivative/ExtraFieldBlockDeriver.php Provides entity field block definitions for every field. 1
EzPlatformInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php
Facade final class PHPUnit\Event vendor/phpunit/phpunit/src/Event/Facade.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 23
Facade final class SebastianBergmann\CodeCoverage\Report\Xml vendor/phpunit/php-code-coverage/src/Report/Xml/Facade.php 1
Facade final class PHPUnit\TextUI\Output vendor/phpunit/phpunit/src/TextUI/Output/Facade.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
Facade final class PHPUnit\TestRunner\TestResult vendor/phpunit/phpunit/src/Runner/TestResult/Facade.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
Facade final class SebastianBergmann\FileIterator vendor/phpunit/php-file-iterator/src/Facade.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 7
Facade final class SebastianBergmann\CodeCoverage\Report\Html vendor/phpunit/php-code-coverage/src/Report/Html/Facade.php 1
Facade final class PHPUnit\Runner\Extension vendor/phpunit/phpunit/src/Runner/Extension/Facade.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
Factory

Use "Prophecy\Comparator\FactoryProvider" instead to get a "SebastianBergmann\Comparator\Factory" instance.

final class Prophecy\Comparator vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php Prophecy comparator factory.
Factory final class PHPUnit\Runner\Filter vendor/phpunit/phpunit/src/Runner/Filter/Factory.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
Factory interface phpDocumentor\Reflection\DocBlock\Tags\Factory vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Factory.php 2 4
Factory class Composer vendor/composer/composer/src/Composer/Factory.php Creates a configured instance of composer. 21
Factory final class SebastianBergmann\Comparator vendor/sebastian/comparator/src/Factory.php 1 10
Factory final class SebastianBergmann\FileIterator vendor/phpunit/php-file-iterator/src/Factory.php @internal This class is not covered by the backward compatibility promise for phpunit/php-file-iterator
Factory class JsonSchema\Constraints vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php Factory for centralize constraint initialization.
FactoryCommandLoader class Symfony\Component\Console\CommandLoader vendor/symfony/console/CommandLoader/FactoryCommandLoader.php A simple command loader using factories to instantiate commands lazily.
FactoryInterface interface Drupal\Component\Plugin\Factory core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php Factory interface implemented by all plugin factories. 2 1
FactoryProvider final class Prophecy\Comparator vendor/phpspec/prophecy/src/Prophecy/Comparator/FactoryProvider.php Prophecy comparator factory. 3
FactoryResolverInterface interface OpenTelemetry\SDK\Common\Http\Psr\Message vendor/open-telemetry/sdk/Common/Http/Psr/Message/FactoryResolverInterface.php 2 4
FactoryRuntimeLoader class Twig\RuntimeLoader vendor/twig/twig/src/RuntimeLoader/FactoryRuntimeLoader.php Lazy loads the runtime implementations for a Twig element. 1
FactoryTrait trait Symfony\Component\DependencyInjection\Loader\Configurator\Traits vendor/symfony/dependency-injection/Loader/Configurator/Traits/FactoryTrait.php
Failed final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Outcome/Failed.php @psalm-immutable 12
FailedMessageEvent final class Symfony\Component\Mailer\Event vendor/symfony/mailer/Event/FailedMessageEvent.php @author Fabien Potencier <fabien@symfony.com> 1
FailedPredictionException class Prophecy\Exception\Prediction vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/FailedPredictionException.php Basic failed prediction exception. Use it for custom prediction failures.
FailedSchemaDetectionResult final class PHPUnit\TextUI\XmlConfiguration vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/SchemaDetector/FailedSchemaDetectionResult.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
FailedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Outcome/FailedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 6 6
FailoverTransport class Symfony\Component\Mailer\Transport vendor/symfony/mailer/Transport/FailoverTransport.php Uses several Transports using a failover algorithm. 1
Failure final class PHPUnit\Framework\TestStatus vendor/phpunit/phpunit/src/Framework/TestStatus/Failure.php @psalm-immutable
Failure final class SebastianBergmann\CodeCoverage\Test\TestStatus vendor/phpunit/php-code-coverage/src/TestStatus/Failure.php @psalm-immutable
FailureMarker final class Drupal\package_manager core/modules/package_manager/src/FailureMarker.php Handles failure marker file operation. 1
FallbackBuilder class Ramsey\Uuid\Builder vendor/ramsey/uuid/src/Builder/FallbackBuilder.php FallbackBuilder builds a UUID by stepping through a list of UUID builders until a UUID can be constructed without exceptions 1
FallbackFieldTypeCategory class Drupal\Core\Field core/lib/Drupal/Core/Field/FallbackFieldTypeCategory.php Fallback plugin class for FieldTypeCategoryManager. 1 1
FallbackNodeProvider class Ramsey\Uuid\Provider\Node vendor/ramsey/uuid/src/Provider/Node/FallbackNodeProvider.php FallbackNodeProvider retrieves the system node ID by stepping through a list of providers until a node ID can be obtained 1
FallbackPluginManagerInterface interface Drupal\Component\Plugin core/lib/Drupal/Component/Plugin/FallbackPluginManagerInterface.php An interface implemented by plugin managers with fallback plugin behaviors. 5 6
FalseType final class SebastianBergmann\Type vendor/sebastian/type/src/type/FalseType.php

Pagination

  • First page
  • Previous page
  • …
  • Page 68
  • Page 69
  • Page 70
  • Page 71
  • Page 72
  • Page 73
  • Page 74
  • Page 75
  • Page 76
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal