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 |
---|---|---|---|---|---|---|---|---|
ExtensionNameConstraint | class | Drupal\Core\Extension\Plugin\Validation\Constraint | core/ |
Checks that the value is a valid extension name. | ||||
ExtensionNameLengthException | class | Drupal\Core\Extension | core/ |
Exception thrown when the extension's name length exceeds the allowed maximum. | ||||
ExtensionNameReservedException | class | Drupal\Core\Extension | core/ |
Exception thrown when the extension's name is already reserved. | ||||
ExtensionPathResolver | class | Drupal\Core\Extension | core/ |
Factory for getting extension lists by type. | 3 | |||
ExtensionRange | class | Google\Protobuf\Internal\DescriptorProto | vendor/ |
Generated from protobuf message <code>google.protobuf.DescriptorProto.ExtensionRange</code> | ||||
ExtensionRangeOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.ExtensionRangeOptions</code> | ||||
ExtensionSet | final class | Twig | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
ExtensionTrait | trait | Symfony\Component\DependencyInjection\Extension | vendor/ |
@author Yonel Ceruto <yonelceruto@gmail.com> | 1 | |||
ExtensionVersion | final class | Drupal\Core\Extension | core/ |
Provides an extension version value object. | 6 | |||
ExtraAttributesException | class | Symfony\Component\Serializer\Exception | vendor/ |
ExtraAttributesException. | 2 | |||
Extract | class | Drupal\migrate\Plugin\migrate\process | core/ |
Extracts a value from an array. | ||||
ExtractingEventDispatcher | class | Symfony\Component\EventDispatcher\DependencyInjection | vendor/ |
@internal | ||||
ExtraFieldBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Provides a block that renders an extra field from an entity. | 1 | |||
ExtraFieldBlockCacheTagInvalidator | class | Drupal\layout_builder\Cache | core/ |
Provides a cache tag invalidator that clears the block cache. | 2 | |||
ExtraFieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | 1 | |||
EzPlatformInstaller | class | Composer\Installers | vendor/ |
|||||
Facade | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 23 | |||
Facade | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
1 | ||||
Facade | final class | PHPUnit\TextUI\Output | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Facade | final class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Facade | final class | SebastianBergmann\FileIterator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 7 | |||
Facade | final class | SebastianBergmann\CodeCoverage\Report\Html | vendor/ |
1 | ||||
Facade | final class | PHPUnit\Runner\Extension | vendor/ |
@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/ |
Prophecy comparator factory. | |||
Factory | final class | PHPUnit\Runner\Filter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Factory | interface | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
2 | 4 | |||
Factory | class | Composer | vendor/ |
Creates a configured instance of composer. | 21 | |||
Factory | final class | SebastianBergmann\Comparator | vendor/ |
1 | 10 | |||
Factory | final class | SebastianBergmann\FileIterator | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-file-iterator | ||||
Factory | class | JsonSchema\Constraints | vendor/ |
Factory for centralize constraint initialization. | ||||
FactoryCommandLoader | class | Symfony\Component\Console\CommandLoader | vendor/ |
A simple command loader using factories to instantiate commands lazily. | ||||
FactoryInterface | interface | Drupal\Component\Plugin\Factory | core/ |
Factory interface implemented by all plugin factories. | 2 | 1 | ||
FactoryProvider | final class | Prophecy\Comparator | vendor/ |
Prophecy comparator factory. | 3 | |||
FactoryResolverInterface | interface | OpenTelemetry\SDK\Common\Http\Psr\Message | vendor/ |
2 | 4 | |||
FactoryRuntimeLoader | class | Twig\RuntimeLoader | vendor/ |
Lazy loads the runtime implementations for a Twig element. | 1 | |||
FactoryTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
Failed | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 12 | |||
FailedMessageEvent | final class | Symfony\Component\Mailer\Event | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
FailedPredictionException | class | Prophecy\Exception\Prediction | vendor/ |
Basic failed prediction exception. Use it for custom prediction failures. | ||||
FailedSchemaDetectionResult | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
FailedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | 6 | ||
FailoverTransport | class | Symfony\Component\Mailer\Transport | vendor/ |
Uses several Transports using a failover algorithm. | 1 | |||
Failure | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
Failure | final class | SebastianBergmann\CodeCoverage\Test\TestStatus | vendor/ |
@psalm-immutable | ||||
FailureMarker | final class | Drupal\package_manager | core/ |
Handles failure marker file operation. | 1 | |||
FallbackBuilder | class | Ramsey\Uuid\Builder | vendor/ |
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/ |
Fallback plugin class for FieldTypeCategoryManager. | 1 | 1 | ||
FallbackNodeProvider | class | Ramsey\Uuid\Provider\Node | vendor/ |
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/ |
An interface implemented by plugin managers with fallback plugin behaviors. | 5 | 6 | ||
FalseType | final class | SebastianBergmann\Type | vendor/ |