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 |
---|---|---|---|---|---|---|---|---|
BlockContentHooks | class | Drupal\block_content\Hook | core/ |
Hook implementations for block_content. | ||||
BlockContentInterface | interface | Drupal\block_content | core/ |
Provides an interface defining a content block entity. | 1 | 5 | ||
BlockContentListBuilder | class | Drupal\block_content | core/ |
Defines a class to build a listing of content block entities. | 1 | |||
BlockContentModerationHandler | class | Drupal\content_moderation\Entity\Handler | core/ |
Customizations for block content entities. | 1 | |||
BlockContentPermissions | class | Drupal\block_content | core/ |
Provide dynamic permissions for blocks of different types. | ||||
BlockContentStorageSchema | class | Drupal\block_content | core/ |
Defines the block content schema handler. | 1 | |||
BlockContentTranslationHandler | class | Drupal\block_content | core/ |
Defines the translation handler for content blocks. | 1 | |||
BlockContentType | class | Drupal\block_content\Entity | core/ |
Defines the block type entity. | 2 | |||
BlockContentTypeDeleteForm | class | Drupal\block_content\Form | core/ |
Provides a confirmation form for deleting a block type entity. | 1 | |||
BlockContentTypeForm | class | Drupal\block_content | core/ |
The block content type entity form. | 1 | |||
BlockContentTypeInterface | interface | Drupal\block_content | core/ |
Provides an interface defining a block type entity. | 1 | 2 | ||
BlockContentTypeListBuilder | class | Drupal\block_content | core/ |
Defines a class to build a listing of block type entities. | 1 | |||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
BlockContentViewBuilder | class | Drupal\block_content | core/ |
View builder handler for content blocks. | 1 | |||
BlockContentViewsData | class | Drupal\block_content | core/ |
Provides the views data for the block_content entity type. | 1 | |||
BlockContentWorkspaceHandler | class | Drupal\workspaces\Entity\Handler | core/ |
Provides a custom workspace handler for block_content entities. | 1 | |||
BlockController | class | Drupal\block\Controller | core/ |
Controller routines for admin block routes. | ||||
BlockControlStructureSpacingSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
BlockCustom | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 content block source from database. | ||||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n content block translations source from database. | 1 | 1 | ||
BlockDeleteForm | class | Drupal\block\Form | core/ |
Provides a deletion confirmation form for the block instance deletion form. | 1 | |||
BlockedIp | class | Drupal\ban\Plugin\migrate\destination | core/ |
Destination for blocked IP addresses. | ||||
BlockedIps | class | Drupal\ban\Plugin\migrate\source\d7 | core/ |
Drupal 7 blocked IPs source from database. | ||||
BlockEntitySettingTrayForm | class | Drupal\settings_tray\Block | core/ |
Provides form for block instance forms when used in the off-canvas dialog. | 1 | |||
BlockForm | class | Drupal\block | core/ |
Provides form for block instance forms. | 1 | 2 | ||
BlockHasOverridesAccessCheck | class | Drupal\settings_tray\Access | core/ |
Determines whether the requested block has a 'settings_tray' form. | 2 | |||
BlockHooks | class | Drupal\block\Hook | core/ |
Hook implementations for block. | ||||
BlockingSharedLockStoreInterface | interface | Symfony\Component\Lock | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 3 | 3 | ||
BlockingStoreInterface | interface | Symfony\Component\Lock | vendor/ |
@author Hamza Amrouche <hamza.simperfit@gmail.com> | 4 | 4 | ||
BlockInterface | interface | Drupal\block | core/ |
Provides an interface defining a block entity. | 1 | 13 | ||
BlockLibraryController | class | Drupal\block\Controller | core/ |
Provides a list of block plugins to be added to the layout. | ||||
BlockListBuilder | class | Drupal\block | core/ |
Defines a class to build a listing of block entities. | 1 | |||
BlockListController | class | Drupal\block\Controller | core/ |
Defines a controller to list blocks. | ||||
BlockManager | class | Drupal\Core\Block | core/ |
Manages discovery and instantiation of block plugins. | ||||
BlockManagerInterface | interface | Drupal\Core\Block | core/ |
Provides an interface for the discovery and instantiation of block plugins. | 1 | 8 | ||
BlockNode | class | Twig\Node | vendor/ |
Represents a block node. | 4 | |||
BlockPageDisplayVariantSubscriber | class | Drupal\block\EventSubscriber | core/ |
Selects the block page display variant. | 2 | |||
BlockPageVariant | class | Drupal\block\Plugin\DisplayVariant | core/ |
Provides a page display variant that decorates the main content with blocks. | ||||
BlockPluginCollection | class | Drupal\block | core/ |
Provides a collection of block plugins. | 1 | |||
BlockPluginHasSettingsTrayFormAccessCheck | class | Drupal\settings_tray\Access | core/ |
Determines whether the requested block has a 'settings_tray' form. | 2 | |||
BlockPluginId | class | Drupal\block\Plugin\migrate\process | core/ |
|||||
BlockPluginInterface | interface | Drupal\Core\Block | core/ |
Defines the required interface for all block plugins. | 5 | 14 | 1 | |
BlockPluginTrait | trait | Drupal\Core\Block | core/ |
Provides the base implementation of a block plugin. | 1 | |||
BlockReferenceExpression | class | Twig\Node\Expression | vendor/ |
Represents a block call node. | 4 | |||
BlockReferenceNode | class | Twig\Node | vendor/ |
Represents a block call node. | 4 | |||
BlockRegion | class | Drupal\block\Plugin\migrate\process | core/ |
|||||
BlockRepository | class | Drupal\block | core/ |
Provides a repository for Block config entities. | 2 | |||
BlockRepositoryInterface | interface | Drupal\block | core/ |
1 | 1 | |||
BlockSettings | class | Drupal\block\Plugin\migrate\process | core/ |
Determines the block settings. | ||||
BlockStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents a block of code wrapped in curly braces. | 1 |