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 |
---|---|---|---|---|---|---|---|---|
BinaryExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a binary expression. For example: a + b | ||||
BinaryFileResponse | class | Symfony\Component\HttpFoundation | vendor/ |
BinaryFileResponse represents an HTTP response delivering a file. | 6 | |||
BinaryInstaller | class | Composer\Installer | vendor/ |
Utility to handle installation of package "bin"/binaries | 2 | |||
BinaryInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for binary data. | 1 | 2 | ||
BinaryOp | abstract class | PhpParser\Node\Expr | vendor/ |
27 | 29 | |||
BinaryOperator | abstract class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
BinaryPresenceInterface | interface | Composer\Installer | vendor/ |
Interface for the package installation manager that handle binary installation. | 1 | |||
BinaryUtils | class | Ramsey\Uuid | vendor/ |
Provides binary math utilities | ||||
BindTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
Bitbucket | class | Composer\Util | vendor/ |
@author Paul Wenke <wenke.paul@gmail.com> | 1 | |||
BitrixInstaller | class | Composer\Installers | vendor/ |
Installer for Bitrix Framework. Supported types of extensions: | ||||
BitwiseAnd | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
BitwiseAnd | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
BitwiseAndBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
BitwiseNot | class | PhpParser\Node\Expr | vendor/ |
|||||
BitwiseOr | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
BitwiseOr | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
BitwiseOrBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
BitwiseXor | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
BitwiseXor | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
BitwiseXorBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
BlackfireDumper | final class | Twig\Profiler\Dumper | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
BlackHoleMetadataFactory | class | Symfony\Component\Validator\Mapping\Factory | vendor/ |
Metadata factory that does not store metadata. | ||||
Blank | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is blank, i.e. an empty string or null. | 1 | |||
BlankLayout | class | Drupal\layout_builder\Plugin\Layout | core/ |
Provides a layout plugin that produces no output. | ||||
BlankValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
Block | class | Drupal\block\Entity | core/ |
Defines a Block configuration entity class. | 4 | 1 | ||
Block | class | Drupal\block\Plugin\migrate\source | core/ |
Drupal 6/7 block source from database. | 2 | 2 | ||
Block | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a block. | ||||
Block | class | PhpParser\Node\Stmt | vendor/ |
|||||
Block | class | Drupal\Core\Block\Annotation | core/ |
Defines a Block annotation object. | ||||
Block | class | Drupal\Core\Block\Attribute | core/ |
The Block attribute. | 27 | |||
BlockAccessControlHandler | class | Drupal\block | core/ |
Defines the access control handler for the content block entity type. | 1 | |||
BlockAddController | class | Drupal\block\Controller | core/ |
Controller for building the block instance add form. | ||||
BlockBase | abstract class | Drupal\Core\Block | core/ |
Defines a base block implementation that most blocks plugins will extend. | 25 | 25 | ||
BlockCommentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
BlockComponentRenderArray | class | Drupal\layout_builder\EventSubscriber | core/ |
Builds render arrays and handles access for all block components. | 2 | |||
BlockContent | class | Drupal\block_content\Plugin\Derivative | core/ |
Retrieves block plugin definitions for all content blocks. | 1 | |||
BlockContent | class | Drupal\block_content\Plugin\views\wizard | core/ |
Used for creating 'block_content' views with the wizard. | ||||
BlockContent | class | Drupal\block_content\Entity | core/ |
Defines the content block entity class. | ||||
BlockContentAccessControlHandler | class | Drupal\block_content | core/ |
Defines the access control handler for the content block entity type. | 1 | |||
BlockContentAddLocalAction | class | Drupal\block_content\Plugin\Menu\LocalAction | core/ |
Modifies the 'Add content block' local action. | 1 | |||
BlockContentBlock | class | Drupal\block_content\Plugin\Block | core/ |
Defines a generic block type. | ||||
BlockContentController | class | Drupal\block_content\Controller | core/ |
|||||
BlockContentDeleteForm | class | Drupal\block_content\Form | core/ |
Provides a confirmation form for deleting a content block entity. | 1 | |||
BlockContentEntityChangedConstraint | class | Drupal\block_content\Plugin\Validation\Constraint | core/ |
Validation constraint for the block content entity changed timestamp. | ||||
BlockContentEntityChangedConstraintValidator | class | Drupal\block_content\Plugin\Validation\Constraint | core/ |
Validates the BlockContentEntityChanged constraint. | ||||
BlockContentEvents | final class | Drupal\block_content | core/ |
Defines events for the block_content module. | 1 | |||
BlockContentForm | class | Drupal\block_content | core/ |
Form handler for the content block edit forms. | 1 | |||
BlockContentGetDependencyEvent | class | Drupal\block_content\Event | core/ |
Block content event to allow setting an access dependency. | 2 |