Classes, traits, and interfaces - 9.5.x - drupal
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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
BlockContentRedirectTest | class | Drupal\Tests\block_content\Functional\Views | core/ |
Tests the redirect destination on block content on entity operations. | ||||
BlockContentResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
ResourceTestBase for BlockContent entity. | 7 | 1 | ||
BlockContentRevisionsTest | class | Drupal\Tests\block_content\Functional | core/ |
Create a block with revisions. | ||||
BlockContentSaveTest | class | Drupal\Tests\block_content\Functional | core/ |
Tests $block_content->save() for saving content. | ||||
BlockContentTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "BlockContent" content entity type. | ||||
BlockContentTestBase | abstract class | Drupal\Tests\block_content\Functional\Views | core/ |
Base class for all block_content tests. | 4 | |||
BlockContentTestBase | abstract class | Drupal\Tests\block_content\Functional | core/ |
Sets up block content types. | 11 | 1 | ||
BlockContentTranslationHandler | class | Drupal\block_content | core/ |
Defines the translation handler for custom blocks. | ||||
BlockContentTranslationUITest | class | Drupal\Tests\block_content\Functional | core/ |
Tests the block content translation UI. | ||||
BlockContentType | class | Drupal\block_content\Entity | core/ |
Defines the custom block type entity. | 31 | |||
BlockContentTypeDeleteForm | class | Drupal\block_content\Form | core/ |
Provides a confirmation form for deleting a custom block type entity. | ||||
BlockContentTypeForm | class | Drupal\block_content | core/ |
The block content type entity form. | ||||
BlockContentTypeHalJsonAnonTest | class | Drupal\Tests\hal\Functional\block_content | core/ |
@group hal @group legacy | ||||
BlockContentTypeHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\block_content | core/ |
@group hal @group legacy | ||||
BlockContentTypeHalJsonCookieTest | class | Drupal\Tests\hal\Functional\block_content | core/ |
@group hal @group legacy | ||||
BlockContentTypeInterface | interface | Drupal\block_content | core/ |
Provides an interface defining a custom block type entity. | 1 | 3 | ||
BlockContentTypeJsonAnonTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentTypeJsonBasicAuthTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentTypeJsonCookieTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentTypeListBuilder | class | Drupal\block_content | core/ |
Defines a class to build a listing of custom block type entities. | ||||
BlockContentTypeResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
9 | 3 | |||
BlockContentTypeTest | class | Drupal\Tests\block_content\Functional | core/ |
Ensures that custom block type functions work correctly. | ||||
BlockContentTypeTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "BlockContentType" config entity type. | ||||
BlockContentTypeXmlAnonTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentTypeXmlBasicAuthTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentTypeXmlCookieTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
BlockContentValidationTest | class | Drupal\Tests\block_content\Functional | core/ |
Tests block content validation constraints. | ||||
BlockContentViewBuilder | class | Drupal\block_content | core/ |
View builder handler for custom blocks. | ||||
BlockContentViewsData | class | Drupal\block_content | core/ |
Provides the views data for the block_content entity type. | ||||
BlockContentWizardTest | class | Drupal\Tests\block_content\Functional\Views | core/ |
Tests block_content wizard and generic entity integration. | ||||
BlockContentXmlAnonTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentXmlBasicAuthTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContentXmlCookieTest | class | Drupal\Tests\block_content\Functional\Rest | core/ |
@group rest | ||||
BlockContextualLinksTest | class | Drupal\Tests\block\FunctionalJavascript | core/ |
Tests the contextual links added while rendering the block. | ||||
BlockController | class | Drupal\block\Controller | core/ |
Controller routines for admin block routes. | ||||
BlockCreationTrait | trait | Drupal\Tests\block\Traits | core/ |
Provides methods to create and place block with default settings. | 10 | |||
BlockCustom | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 custom block source from database. | ||||
BlockCustomTest | class | Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7 | core/ |
Tests d7_block_custom source plugin. | ||||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n custom block translations source from database. | 1 | 1 | ||
BlockCustomTranslationTest | class | Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7 | core/ |
Tests i18n custom block translations source plugin. | ||||
BlockDeleteForm | class | Drupal\block\Form | core/ |
Provides a deletion confirmation form for the block instance deletion form. | ||||
BlockDemoTest | class | Drupal\Tests\block\Functional | core/ |
Tests the block demo page with admin themes. | ||||
BlockDependenciesTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests views block config dependencies functionality. | ||||
BlockedIp | class | Drupal\ban\Plugin\migrate\destination | core/ |
Destination for blocked IP addresses. | 1 | |||
BlockedIps | class | Drupal\ban\Plugin\migrate\source\d7 | core/ |
Drupal 7 blocked IPs source from database. | ||||
BlockedIpsTest | class | Drupal\Tests\ban\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 blocked_ip source plugin. | ||||
BlockEntitySettingTrayForm | class | Drupal\settings_tray\Block | core/ |
Provides form for block instance forms when used in the off-canvas dialog. | 1 | |||
BlockExposedFilterAJAXTest | class | Drupal\Tests\views\FunctionalJavascript | core/ |
Tests the exposed filter ajax functionality in a block. | ||||
BlockFilterTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests the JavaScript functionality of the block add filter. |
Pagination
- Previous page
- Page 12
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.