Classes, traits, and interfaces - main - drupal

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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
BlockContentRevisionDeleteTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentRevisionDeleteTest.php Block content revision delete form test.
BlockContentRevisionRevertTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentRevisionRevertTest.php Block content revision form test.
BlockContentRevisionsTest class Drupal\Tests\block_content\Kernel core/modules/block_content/tests/src/Kernel/BlockContentRevisionsTest.php Tests revision based functions for Block Content.
BlockContentRevisionVersionHistoryTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentRevisionVersionHistoryTest.php Block content version history test.
BlockContentRouteAccessTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentRouteAccessTest.php Tests access to block_content routes.
BlockContentRouteProvider class Drupal\block_content\Routing core/modules/block_content/src/Routing/BlockContentRouteProvider.php Provides HTML routes for block_content entities. 1
BlockContentSaveTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php Tests $block_content->save() for saving content.
BlockContentSelection class Drupal\block_content\Plugin\EntityReferenceSelection core/modules/block_content/src/Plugin/EntityReferenceSelection/BlockContentSelection.php Provides specific selection control for the block_content entity type.
BlockContentStatusInfoUpdatePathTest class Drupal\Tests\block_content\Functional\Update core/modules/block_content/tests/src/Functional/Update/BlockContentStatusInfoUpdatePathTest.php Tests block_content_post_update_remove_block_content_status_info_keys.
BlockContentStorageBodyFieldHook class Drupal\block_content_storage_body_field\Hook core/modules/block_content/modules/block_content_storage_body_field/src/Hook/BlockContentStorageBodyFieldHook.php Hook implementations for block_content_storage_body_field.
BlockContentStorageBodyFieldTest class Drupal\Tests\block_content_storage_body_field\Functional core/modules/block_content/modules/block_content_storage_body_field/tests/src/Functional/BlockContentStorageBodyFieldTest.php Tests the block_content_storage_body_field deprecated module.
BlockContentStorageSchema class Drupal\block_content core/modules/block_content/src/BlockContentStorageSchema.php Defines the block content schema handler. 1
BlockContentTest class Drupal\Tests\block_content\Kernel core/modules/block_content/tests/src/Kernel/BlockContentTest.php Tests the block content.
BlockContentTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/BlockContentTest.php JSON:API integration test for the "BlockContent" content entity type.
BlockContentTestBase abstract class Drupal\Tests\block_content\Functional\Views core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php Base class for all block_content tests. 3
BlockContentTestBase abstract class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentTestBase.php Sets up block content types. 16 1
BlockContentTestHooks class Drupal\block_content_test\Hook core/modules/block_content/tests/modules/block_content_test/src/Hook/BlockContentTestHooks.php Hook implementations for block_content_test.
BlockContentThemeHooks class Drupal\block_content\Hook core/modules/block_content/src/Hook/BlockContentThemeHooks.php Theme hook implementations for block_content.
BlockContentThemeSuggestionsTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentThemeSuggestionsTest.php Tests block content theme suggestions.
BlockContentThemeSuggestionsTestHooks class Drupal\block_content_theme_suggestions_test\Hook core/modules/block_content/tests/modules/block_content_theme_suggestions_test/src/Hook/BlockContentThemeSuggestionsTestHooks.php Hook implementations for block_content_theme_suggestions_test.
BlockContentThemeSuggestionsTestThemeHooks class Drupal\block_content_theme_suggestions_test\Hook core/modules/block_content/tests/modules/block_content_theme_suggestions_test/src/Hook/BlockContentThemeSuggestionsTestThemeHooks.php Hook implementations for block_content_theme_suggestions_test.
BlockContentTranslationHandler class Drupal\block_content core/modules/block_content/src/BlockContentTranslationHandler.php Defines the translation handler for content blocks. 1
BlockContentTranslationTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentTranslationTest.php Tests block content translations.
BlockContentTranslationUITest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php Tests the block content translation UI.
BlockContentType class Drupal\block_content\Entity core/modules/block_content/src/Entity/BlockContentType.php Defines the block type entity. 33
BlockContentTypeDeleteForm class Drupal\block_content\Form core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php Provides a confirmation form for deleting a block type entity. 1
BlockContentTypeForm class Drupal\block_content core/modules/block_content/src/BlockContentTypeForm.php The block content type entity form. 1
BlockContentTypeInterface interface Drupal\block_content core/modules/block_content/src/BlockContentTypeInterface.php Provides an interface defining a block type entity. 1 3
BlockContentTypeJsonAnonTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeJsonAnonTest.php Tests Block Content Type Json Anon.
BlockContentTypeJsonBasicAuthTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeJsonBasicAuthTest.php Tests Block Content Type Json Basic Auth.
BlockContentTypeJsonCookieTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeJsonCookieTest.php Tests Block Content Type Json Cookie.
BlockContentTypeListBuilder class Drupal\block_content core/modules/block_content/src/BlockContentTypeListBuilder.php Defines a class to build a listing of block type entities. 1
BlockContentTypeResourceTestBase abstract class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php Resource test base for the BlockContentType entity. 6
BlockContentTypeRouteProvider class Drupal\block_content\Routing core/modules/block_content/src/Routing/BlockContentTypeRouteProvider.php Provides HTML routes for block_content_type entities. 1
BlockContentTypeTest class Drupal\Tests\block_content\Functional core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php Ensures that block type functions work correctly.
BlockContentTypeTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/BlockContentTypeTest.php JSON:API integration test for the "BlockContentType" config entity type.
BlockContentTypeValidationTest class Drupal\Tests\block_content\Kernel core/modules/block_content/tests/src/Kernel/BlockContentTypeValidationTest.php Tests validation of block_content_type entities.
BlockContentTypeXmlAnonTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeXmlAnonTest.php Tests Block Content Type Xml Anon.
BlockContentTypeXmlBasicAuthTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeXmlBasicAuthTest.php Tests Block Content Type Xml Basic Auth.
BlockContentTypeXmlCookieTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeXmlCookieTest.php Tests Block Content Type Xml Cookie.
BlockContentUuidLookup class Drupal\block_content core/modules/block_content/src/BlockContentUuidLookup.php A cache collector that caches IDs for block_content UUIDs. 1 2
BlockContentViewBuilder class Drupal\block_content core/modules/block_content/src/BlockContentViewBuilder.php View builder handler for content blocks. 1
BlockContentViewsData class Drupal\block_content core/modules/block_content/src/BlockContentViewsData.php Provides the views data for the block_content entity type. 1
BlockContentWizardTest class Drupal\Tests\block_content\Functional\Views core/modules/block_content/tests/src/Functional/Views/BlockContentWizardTest.php Tests block_content wizard and generic entity integration.
BlockContentWorkspaceHandler class Drupal\workspaces\Entity\Handler core/modules/workspaces/src/Entity/Handler/BlockContentWorkspaceHandler.php Provides a custom workspace handler for block_content entities. 1
BlockContentXmlAnonTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentXmlAnonTest.php Tests Block Content Xml Anon.
BlockContentXmlBasicAuthTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentXmlBasicAuthTest.php Tests Block Content Xml Basic Auth.
BlockContentXmlCookieTest class Drupal\Tests\block_content\Functional\Rest core/modules/block_content/tests/src/Functional/Rest/BlockContentXmlCookieTest.php Tests Block Content Xml Cookie.
BlockContextualLinksTest class Drupal\Tests\block\FunctionalJavascript core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php Tests the contextual links added while rendering the block.
BlockController class Drupal\block\Controller core/modules/block/src/Controller/BlockController.php Controller routines for admin block routes.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.