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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
BlockComponentRenderArray | class |
Drupal\ |
core/ |
Builds render arrays and handles access for all block components. | 2 | 2 | |
BlockComponentRenderArrayTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray @group layout_builder | |||
BlockConfigEntityUnitTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\block\Entity\Block @group block | |||
BlockConfigSchemaTest | class |
Drupal\ |
core/ |
Tests the block config schema. | |||
BlockConfigSchemaTest | class |
Drupal\ |
core/ |
Tests the block config schema. | |||
BlockContent | class |
Drupal\ |
core/ |
Defines the content block entity class. | 31 | ||
BlockContent | class |
Drupal\ |
core/ |
Retrieves block plugin definitions for all content blocks. | 1 | ||
BlockContentCacheTagsTest | class |
Drupal\ |
core/ |
Tests the Content Block entity's cache tags. | |||
BlockContentContextualLinksTest | class |
Drupal\ |
core/ |
Tests views contextual links on block content. | |||
BlockContentController | class |
Drupal\ |
core/ |
||||
BlockContentCreationTest | class |
Drupal\ |
core/ |
Create a block and test saving it. | |||
BlockContentDeleteForm | class |
Drupal\ |
core/ |
Provides a confirmation form for deleting a content block entity. | |||
BlockContentDeletionTest | class |
Drupal\ |
core/ |
Tests that deleting a block clears the cached definitions. | |||
BlockContentDeriverTest | class |
Drupal\ |
core/ |
Tests block content plugin deriver. | |||
BlockContentEntityChangedConstraintValidator | class |
Drupal\ |
core/ |
Validates the BlockContentEntityChanged constraint. | |||
BlockContentEntityReferenceSelectionTest | class |
Drupal\ |
core/ |
Tests EntityReference selection handlers don't return non-reusable blocks. | |||
BlockContentEvents | final class |
Drupal\ |
core/ |
Defines events for the block_content module. | 1 | ||
BlockContentFieldFilterTest | class |
Drupal\ |
core/ |
Tests block_content field filters with translations. | |||
BlockContentForm | class |
Drupal\ |
core/ |
Form handler for the content block edit forms. | |||
BlockContentGetDependencyEvent | class |
Drupal\ |
core/ |
Block content event to allow setting an access dependency. | 1 | ||
BlockContentIntegrationTest | class |
Drupal\ |
core/ |
Tests the block_content integration into views. | |||
BlockContentInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a content block entity. | 1 | 8 | |
BlockContentJsonAnonTest | class |
Drupal\ |
core/ |
@group rest | |||
BlockContentJsonBasicAuthTest | class |
Drupal\ |
core/ |
@group rest | |||
BlockContentJsonCookieTest | class |
Drupal\ |
core/ |
@group rest | |||
BlockContentListBuilder | class |
Drupal\ |
core/ |
Defines a class to build a listing of content block entities. | |||
BlockContentListTest | class |
Drupal\ |
core/ |
Tests the listing of content blocks. | |||
BlockContentListViewsTest | class |
Drupal\ |
core/ |
Tests the Views-powered listing of content blocks. | |||
BlockContentLocalTasksTest | class |
Drupal\ |
core/ |
Tests existence of block_content local tasks. | |||
BlockContentModerationHandler | class |
Drupal\ |
core/ |
Customizations for block content entities. | |||
BlockContentPageViewTest | class |
Drupal\ |
core/ |
Create a block and test block access by attempting to view the block. | |||
BlockContentPermissionsTest | class |
Drupal\ |
core/ |
Tests the permissions of content blocks. | |||
BlockContentRedirectTest | class |
Drupal\ |
core/ |
Tests the redirect destination on block content on entity operations. | |||
BlockContentRedirectTest | class |
Drupal\ |
core/ |
Ensures that custom block type functions work correctly. | |||
BlockContentRemoveConstraint | class |
Drupal\ |
core/ |
Tests the upgrade path for removing unique constraint on blocks. | |||
BlockContentReusableIndexUpdatePathTest | class |
Drupal\ |
core/ |
Tests the upgrade path for Block Content reusable column index. | |||
BlockContentRevisionsTest | class |
Drupal\ |
core/ |
Create a block with revisions. | |||
BlockContentRevisionsTest | class |
Drupal\ |
core/ |
Tests revision based functions for Block Content. | |||
BlockContentSaveTest | class |
Drupal\ |
core/ |
Tests $block_content->save() for saving content. | |||
BlockContentStorageSchema | class |
Drupal\ |
core/ |
Defines the block content schema handler. | 1 | ||
BlockContentTestBase | abstract class |
Drupal\ |
core/ |
Sets up block content types. | 11 | 1 | |
BlockContentTestBase | abstract class |
Drupal\ |
core/ |
Base class for all block_content tests. | 3 | ||
BlockContentTranslationHandler | class |
Drupal\ |
core/ |
Defines the translation handler for content blocks. | |||
BlockContentTranslationUITest | class |
Drupal\ |
core/ |
Tests the block content translation UI. | |||
BlockContentType | class |
Drupal\ |
core/ |
Defines the block type entity. | 33 | ||
BlockContentTypeDeleteForm | class |
Drupal\ |
core/ |
Provides a confirmation form for deleting a block type entity. | |||
BlockContentTypeForm | class |
Drupal\ |
core/ |
The block content type entity form. | |||
BlockContentTypeInterface | interface |
Drupal\ |
core/ |
Provides an interface defining a block type entity. | 1 | 4 | |
BlockContentTypeJsonAnonTest | class |
Drupal\ |
core/ |
@group rest | |||
BlockContentTypeJsonBasicAuthTest | class |
Drupal\ |
core/ |
@group rest |