Classes, traits, and interfaces - 11.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 1531
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| BooleanItemNormalizer | class | Drupal\test_fieldtype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean fields weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
| BooleanItemTest | class | Drupal\Tests\field\Kernel\Boolean | core/ |
Tests the new entity API for the boolean field type. | ||||
| BooleanNormalizer | class | Drupal\test_datatype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean data weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
| BooleanOperator | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | 3 | 2 | ||
| BooleanOperatorString | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle matching of boolean values. | ||||
| BootableCommandTrait | trait | Drupal\Core\Command | core/ |
Contains helper methods for console commands that boot up Drupal. | 4 | |||
| BootableCommandTraitTest | class | Drupal\Tests\Core\Command | core/ |
Tests the trait that helps console commands boot Drupal. | ||||
| BootstrapConfigStorageFactory | class | Drupal\Core\Config | core/ |
Defines a factory for retrieving the config storage used pre-kernel. | 2 | |||
| BootstrapErrorHandler | final class | Drupal\TestTools\ErrorHandler | core/ |
Drupal's PHPUnit base error handler. | 1 | |||
| Box | class | Drupal\block_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 block source from database. | 1 | |||
| BoxTest | class | Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 block boxes source plugin. | ||||
| BoxTranslation | class | Drupal\block_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n content block translations source from database. | 1 | |||
| BoxTranslationTest | class | Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d6 | core/ |
Tests i18n content block translations source plugin. | ||||
| Breadcrumb | class | Drupal\Core\Breadcrumb | core/ |
Used to return generated breadcrumbs with associated cacheability metadata. | 11 | |||
| Breadcrumb404Test | class | Drupal\FunctionalTests\Breadcrumb | core/ |
Tests the breadcrumb of 404 pages. | ||||
| BreadcrumbBuilderInterface | interface | Drupal\Core\Breadcrumb | core/ |
Defines an interface for classes that build breadcrumbs. | 6 | 6 | ||
| BreadcrumbFrontCacheContextsTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests breadcrumbs functionality. | ||||
| BreadcrumbManager | class | Drupal\Core\Breadcrumb | core/ |
Provides a breadcrumb manager. | 1 | 2 | ||
| BreadcrumbManagerTest | class | Drupal\Tests\Core\Breadcrumb | core/ |
Tests Drupal\Core\Breadcrumb\BreadcrumbManager. | ||||
| BreadcrumbPreprocess | class | Drupal\Core\Breadcrumb | core/ |
Breadcrumb theme preprocess. | 2 | 2 | ||
| BreadcrumbTest | class | Drupal\Tests\Core\Breadcrumb | core/ |
Tests Drupal\Core\Breadcrumb\Breadcrumb. | ||||
| BreadcrumbTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests breadcrumbs functionality. | ||||
| BreakLockForm | class | Drupal\views_ui\Form | core/ |
Builds the form to break the lock of an edited view. | ||||
| BreakLockLink | class | Drupal\Core\TempStore\Element | core/ |
Provides a link to break a tempstore lock. | ||||
| Breakpoint | class | Drupal\breakpoint | core/ |
Default object used for breakpoint plugins. | 1 | |||
| BreakpointDiscoveryTest | class | Drupal\Tests\breakpoint\Kernel | core/ |
Tests discovery of breakpoints provided by themes and modules. | ||||
| BreakpointHooks | class | Drupal\breakpoint\Hook | core/ |
Hook implementations for breakpoint. | ||||
| BreakpointInterface | interface | Drupal\breakpoint | core/ |
Interface for Breakpoint plugins. | 1 | 2 | ||
| BreakpointManager | class | Drupal\breakpoint | core/ |
Defines a breakpoint plugin manager to deal with breakpoints. | 2 | |||
| BreakpointManagerInterface | interface | Drupal\breakpoint | core/ |
Defines an interface for breakpoint managers. | 1 | 2 | ||
| BreakpointTest | class | Drupal\Tests\breakpoint\Unit | core/ |
Tests Drupal\breakpoint\Breakpoint. | ||||
| Broccoli | class | Drupal\Tests\Component\Plugin\Fixtures\vegetable | core/ |
Plugin annotation @Plugin( id = "broccoli", label = "Broccoli", color = "green" ) | 1 | |||
| Broken | class | Drupal\views\Plugin\views\sort | core/ |
A special handler to take the place of missing or broken handlers. | ||||
| Broken | class | Drupal\views\Plugin\views\field | core/ |
A special handler to take the place of missing or broken handlers. | 1 | |||
| Broken | class | Drupal\views\Plugin\views\relationship | core/ |
A special handler to take the place of missing or broken handlers. | ||||
| Broken | class | Drupal\views\Plugin\views\filter | core/ |
A special handler to take the place of missing or broken handlers. | 2 | |||
| Broken | class | Drupal\views\Plugin\views\area | core/ |
A special handler to take the place of missing or broken handlers. | 1 | |||
| Broken | class | Drupal\views\Plugin\views\argument | core/ |
A special handler to take the place of missing or broken handlers. | ||||
| Broken | class | Drupal\Core\Entity\Plugin\EntityReferenceSelection | core/ |
Defines a fallback plugin for missing entity_reference selection plugins. | ||||
| Broken | class | Drupal\Core\Block\Plugin\Block | core/ |
Defines a fallback plugin for missing block plugins. | 2 | |||
| BrokenCacheUpdateTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Ensures that a broken or out-of-date element info cache is not used. | ||||
| BrokenHandlerTrait | trait | Drupal\views\Plugin\views | core/ |
A Trait for Views broken handlers. | 6 | |||
| BrokenInboundPathProcessor | class | Drupal\update_script_test\PathProcessor | core/ |
Example path processor which breaks on inbound. | 2 | |||
| BrokenPostRequestException | class | Drupal\Core\Form\Exception | core/ |
Defines an exception used, when the POST HTTP body is broken. | 4 | |||
| BrokenSystemTestController | class | Drupal\system_test\Controller | core/ |
A controller that does not specify its autowired dependencies correctly. | 1 | |||
| BrokenToolkit | class | Drupal\image_test\Plugin\ImageToolkit | core/ |
Defines a Test toolkit for image manipulation within Drupal. | ||||
| BrowserHtmlDebugTrait | trait | Drupal\Tests | core/ |
Provides the debug functions for browser tests. | ||||
| BrowserTestBase | abstract class | Drupal\Tests | core/ |
Provides a test case for functional Drupal tests. | 585 | 593 | ||
| BrowserTestBaseMockableClassTest | class | Drupal\Tests\Core\Test | core/ |
A class extending BrowserTestBase for testing purposes. | ||||
| BrowserTestBaseTest | class | Drupal\FunctionalTests | core/ |
Tests BrowserTestBase functionality. |
Pagination
- Previous page
- Page 17
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.