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 |
---|---|---|---|---|---|---|---|---|
BlockTheme | class | Drupal\block\Plugin\migrate\process | core/ |
|||||
BlockTokenParser | final class | Twig\TokenParser | vendor/ |
Marks a section of a template as being reusable. | 1 | |||
BlockTranslation | class | Drupal\block\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n block data from database. | ||||
BlockTranslation | class | Drupal\block\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n block data from database. | ||||
BlockTypeAccessControlHandler | class | Drupal\block_content | core/ |
Defines the access control handler for the "Block Type" entity type. | 1 | |||
BlockUser | class | Drupal\user\Plugin\Action | core/ |
Blocks a user. | ||||
BlockViewBuilder | class | Drupal\block | core/ |
Provides a Block view builder. | 1 | |||
BlockVisibility | class | Drupal\block\Plugin\migrate\process | core/ |
|||||
BodyNode | class | Twig\Node | vendor/ |
Represents a body node. | 3 | |||
BodyRendererInterface | interface | Symfony\Component\Mime | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | |||
BodySummarizer | final class | GuzzleHttp | vendor/ |
1 | ||||
BodySummarizerInterface | interface | GuzzleHttp | vendor/ |
1 | 1 | |||
BonefishInstaller | class | Composer\Installers | vendor/ |
|||||
Boolean | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for booleans. | ||||
Boolean | class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing a Boolean type. | 2 | 3 | ||
BooleanAnd | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
1 | ||||
BooleanCheckboxWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'boolean_checkbox' widget. | ||||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 1 | |||
BooleanFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'boolean' formatter. | ||||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 3 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 1 | ||
BooleanLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a boolean literal. | ||||
BooleanNot | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
BooleanOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | 2 | 1 | ||
BooleanOperatorPlacementSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures | vendor/ |
|||||
BooleanOperatorString | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | ||||
BooleanOr | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
1 | ||||
BooleanParser | class | OpenTelemetry\SDK\Common\Configuration\Parser | vendor/ |
1 | ||||
BoolValue | class | Google\Protobuf | vendor/ |
Wrapper message for `bool`. The JSON representation for `BoolValue` is JSON `true` and `false`. | ||||
Bool_ | class | PhpParser\Node\Expr\Cast | vendor/ |
|||||
BootableCommandTrait | trait | Drupal\Core\Command | core/ |
Contains helper methods for console commands that boot up Drupal. | 2 | |||
BootstrapConfigStorageFactory | class | Drupal\Core\Config | core/ |
Defines a factory for retrieving the config storage used pre-kernel. | 2 | |||
BootstrapFinished | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
BootstrapFinishedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
BotbleInstaller | class | Composer\Installers | vendor/ |
|||||
Bound | class | Composer\Semver\Constraint | vendor/ |
2 | ||||
BoundArgument | final class | Symfony\Component\DependencyInjection\Argument | vendor/ |
@author Guilhem Niot <guilhem.niot@gmail.com> | 7 | |||
Box | class | Drupal\block_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 block source from database. | ||||
BoxTranslation | class | Drupal\block_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n content block translations source from database. | ||||
BranchAndPathCoverageNotSupportedException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
Breadcrumb | class | Drupal\Core\Breadcrumb | core/ |
Used to return generated breadcrumbs with associated cacheability metadata. | 6 | |||
BreadcrumbBuilderInterface | interface | Drupal\Core\Breadcrumb | core/ |
Defines an interface for classes that build breadcrumbs. | 5 | 5 | ||
BreadcrumbManager | class | Drupal\Core\Breadcrumb | core/ |
Provides a breadcrumb manager. | ||||
BreakLockForm | class | Drupal\views_ui\Form | core/ |
Builds the form to break the lock of an edited view. | ||||
BreakLockLink | class | Drupal\Core\TempStore\Element | core/ |
Provides a link to break a tempstore lock. | ||||
Breakpoint | class | Drupal\breakpoint | core/ |
Default object used for breakpoint plugins. | ||||
BreakpointHooks | class | Drupal\breakpoint\Hook | core/ |
Hook implementations for breakpoint. | ||||
BreakpointInterface | interface | Drupal\breakpoint | core/ |
Interface for Breakpoint plugins. | 1 | 1 | ||
BreakpointManager | class | Drupal\breakpoint | core/ |
Defines a breakpoint plugin manager to deal with breakpoints. | 2 | |||
BreakpointManagerInterface | interface | Drupal\breakpoint | core/ |
Defines an interface for breakpoint managers. | 1 | 1 |