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 |
---|---|---|---|---|---|---|---|---|
BadPluginDefinitionException | class | Drupal\migrate\Plugin\Exception | core/ |
Defines a class for bad plugin definition exceptions. | 3 | |||
BadRequestException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
Raised when a user sends a malformed request. | 10 | |||
BadRequestHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 2 | 23 | ||
BadResponseException | class | GuzzleHttp\Exception | vendor/ |
Exception when an HTTP error occurs (4xx or 5xx error) | 2 | 1 | ||
Baggage | final class | OpenTelemetry\API\Baggage | vendor/ |
1 | ||||
BaggageBuilder | final class | OpenTelemetry\API\Baggage | vendor/ |
|||||
BaggageBuilderInterface | interface | OpenTelemetry\API\Baggage | vendor/ |
1 | 2 | |||
BaggageInterface | interface | OpenTelemetry\API\Baggage | vendor/ |
1 | ||||
BaggagePropagator | final class | OpenTelemetry\API\Baggage\Propagation | vendor/ |
|||||
BanAdmin | class | Drupal\ban\Form | core/ |
Displays banned IP addresses. | 1 | |||
BanDelete | class | Drupal\ban\Form | core/ |
Provides a form to unban IP addresses. | 1 | |||
BanHooks | class | Drupal\ban\Hook | core/ |
Hook implementations for ban. | ||||
BanIpManager | class | Drupal\ban | core/ |
Ban IP manager. | 2 | |||
BanIpManagerInterface | interface | Drupal\ban | core/ |
Provides an interface defining a BanIp manager. | 1 | 3 | ||
BanMiddleware | class | Drupal\ban | core/ |
Provides a HTTP middleware to implement IP based banning. | 2 | |||
BareHtmlPageRenderer | class | Drupal\Core\Render | core/ |
Default bare HTML page renderer. | ||||
BareHtmlPageRenderer | class | Drupal\Core\ProxyClass\Render | core/ |
Provides a proxy class for \Drupal\Core\Render\BareHtmlPageRenderer. | ||||
BareHtmlPageRendererInterface | interface | Drupal\Core\Render | core/ |
Bare HTML page renderer. | 2 | 4 | ||
Base | abstract class | Peast\Formatter | vendor/ |
Base class for formatters, all the formatters must extend this class. | 3 | |||
Base64ContentEncoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Base64Encoder | class | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 2 | |||
Base64MimeHeaderEncoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | ||||
BaseCommand | abstract class | Composer\Command | vendor/ |
Base class for Composer commands | 32 | 1 | ||
BaseCommand | class | Drupal\Core\Ajax | core/ |
Base command that only exists to simplify AJAX commands. | ||||
BaseConstraint | class | JsonSchema\Constraints | vendor/ |
A more basic constraint definition - used for the public interface to avoid exposing library internals. | 2 | 2 | ||
BaseDependencyCommand | abstract class | Composer\Command | vendor/ |
Base implementation for commands mapping dependency relationships. | 2 | |||
BaseDumper | abstract class | Twig\Profiler\Dumper | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | |||
BaseExcludeFilter | abstract class | Composer\Package\Archiver | vendor/ |
@author Nils Adermann <naderman@naderman.de> | 2 | |||
BaseFieldDefinition | class | Drupal\Core\Field | core/ |
A class for defining entity fields. | 32 | |||
BaseFieldFileFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for file formatters, which allow to link to the file download URL. | 4 | |||
BaseFieldOverride | class | Drupal\Core\Field\Entity | core/ |
Defines the base field override entity. | 1 | |||
BaseFieldOverrideAccessControlHandler | class | Drupal\Core\Field | core/ |
Provides en entity access control handler for base field override entity. | 1 | |||
BaseFieldOverrideStorage | class | Drupal\Core\Field | core/ |
Storage class for base field overrides. | 1 | |||
BaseFileConstraintValidator | abstract class | Drupal\file\Plugin\Validation\Constraint | core/ |
Provides a base class for file constraint validators. | 7 | |||
BaseFormIdInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for a Form that has a base form ID. | 5 | 5 | ||
BaseInstaller | abstract class | Composer\Installers | vendor/ |
96 | ||||
BaseIO | abstract class | Composer\IO | vendor/ |
2 | ||||
Baseline | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
BasePackage | abstract class | Composer\Package | vendor/ |
Base class for packages providing name storage and default match implementation | 2 | 45 | ||
BaseRequirementsFulfilledValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that base requirements do not have any errors. | ||||
BaseRequirementValidatorTrait | trait | Drupal\package_manager\Validator | core/ |
Provides methods for base requirement validators. | ||||
BaseTag | abstract class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Parses a tag definition for a DocBlock. | 13 | |||
BashCompletionOutput | class | Symfony\Component\Console\Completion\Output | vendor/ |
@author Wouter de Jong <wouter@wouterj.nl> | 1 | |||
Basic | class | Drupal\views\Plugin\views\exposed_form | core/ |
Exposed form plugin that provides a basic exposed form. | ||||
BasicAuth | class | Drupal\basic_auth\Authentication\Provider | core/ |
HTTP Basic authentication provider. | 2 | |||
BasicAuthHooks | class | Drupal\basic_auth\Hook | core/ |
Hook implementations for basic_auth. | ||||
BasicRecursiveValidatorFactory | class | Drupal\Core\Validation | core/ |
A factory for creating Symfony recursive validators. | 2 | |||
BasicSettingsForm | class | Drupal\views_ui\Form | core/ |
Form builder for the admin display defaults page. | 1 | |||
BasicStringFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'basic_string' formatter. | ||||
Batch | class | Drupal\Core\Queue | core/ |
Defines a batch queue handler used by the Batch API. |