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 |
---|---|---|---|---|---|---|---|---|
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 | |||
BlockContentTypeResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
9 | 3 | |||
BlockContentTypeResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
9 | 3 | |||
BlockContentTypeResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
9 | 3 | |||
BlockContentTypeResourceTestBase | abstract class | Drupal\Tests\block_content\Functional\Rest | core/ |
9 | 3 | |||
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 | ||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
BlockContentUuidLookup | class | Drupal\block_content | core/ |
A cache collector that caches IDs for block_content UUIDs. | 1 | 2 | ||
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 | |||
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 | ||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n custom block translations source from database. | 1 | 1 | ||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n custom block translations source from database. | 1 | 1 | ||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n custom block translations source from database. | 1 | 1 | ||
BlockCustomTranslation | class | Drupal\block_content\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n custom block translations source from database. | 1 | 1 | ||
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 | |||
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 | |||
BlockEntitySettingTrayForm | class | Drupal\settings_tray\Block | core/ |
Provides form for block instance forms when used in the off-canvas dialog. | 1 |
Pagination
- Previous page
- Page 27
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.