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 |
---|---|---|---|---|---|---|---|---|
BlockSettings | class | Drupal\block\Plugin\migrate\process | core/ |
Plugin annotation @MigrateProcessPlugin( id = "block_settings" ) | 1 | |||
BlockSettingsTest | class | Drupal\Tests\block\Unit\Plugin\migrate\process | core/ |
@coversDefaultClass \Drupal\block\Plugin\migrate\process\BlockSettings[[api-linebreak]] @group block | ||||
BlockStorageUnitTest | class | Drupal\Tests\block\Kernel | core/ |
Tests the storage of blocks. | ||||
BlockSystemBrandingTest | class | Drupal\Tests\block\Functional | core/ |
Tests branding block display. | ||||
BlockTemplateSuggestionsTest | class | Drupal\Tests\block\Kernel | core/ |
Tests the block_theme_suggestions_block() function. | ||||
BlockTest | class | Drupal\Tests\block\Kernel\Plugin\migrate\source | core/ |
Tests block source plugin. | 1 | 1 | ||
BlockTest | class | Drupal\Tests\block\Functional | core/ |
Tests basic block functionality. | ||||
BlockTest | class | Drupal\Tests\views\Unit\Plugin\views\display | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\display\Block[[api-linebreak]] @group block | ||||
BlockTestBase | abstract class | Drupal\Tests\block\Functional | core/ |
Provides setup and helper methods for block module tests. | 2 | |||
BlockTheme | class | Drupal\block\Plugin\migrate\process | core/ |
Plugin annotation @MigrateProcessPlugin( id = "block_theme" ) | ||||
BlockTranslation | class | Drupal\block\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n block data from database. | ||||
BlockTranslation | class | Drupal\block\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n block data from database. | ||||
BlockTranslationTest | class | Drupal\Tests\block\Kernel\Plugin\migrate\source\d6 | core/ |
Tests i18n block source plugin. | ||||
BlockTranslationTest | class | Drupal\Tests\block\Kernel\Plugin\migrate\source\d7 | core/ |
Tests i18n block source plugin. | ||||
BlockUiTest | class | Drupal\Tests\block\Functional | core/ |
Tests that the block configuration UI exists and stores data correctly. | ||||
BlockUser | class | Drupal\user\Plugin\Action | core/ |
Blocks a user. | ||||
BlockViewBuilder | class | Drupal\block | core/ |
Provides a Block view builder. | ||||
BlockViewBuilderTest | class | Drupal\Tests\block\Kernel | core/ |
Tests the block view builder. | ||||
BlockVisibility | class | Drupal\block\Plugin\migrate\process | core/ |
Plugin annotation @MigrateProcessPlugin( id = "block_visibility" ) | 1 | |||
BlockVisibilityTest | class | Drupal\Tests\block\Unit\Plugin\migrate\process | core/ |
Tests the block_visibility process plugin. | ||||
BlockXmlAnonTest | class | Drupal\Tests\block\Functional\Rest | core/ |
@group rest | ||||
BlockXmlBasicAuthTest | class | Drupal\Tests\block\Functional\Rest | core/ |
@group rest | ||||
BlockXmlCookieTest | class | Drupal\Tests\block\Functional\Rest | core/ |
@group rest | ||||
BlockXssTest | class | Drupal\Tests\block\Functional | core/ |
Tests that the block module properly escapes block descriptions. | ||||
BookManagerDeprecationTest | class | Drupal\Tests\book\Kernel | core/ |
@coversDefaultClass \Drupal\book\BookManager[[api-linebreak]] @group legacy | ||||
Boolean | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for booleans. | ||||
BooleanCheckboxWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'boolean_checkbox' widget. | ||||
BooleanData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The boolean data type. | 4 | 1 | ||
BooleanFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'boolean' formatter. | ||||
BooleanInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for boolean data. | 1 | 4 | ||
BooleanItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'boolean' entity field type. | 1 | 6 | ||
BooleanItemNormalizer | class | Drupal\test_fieldtype_boolean_emoji_normalizer\Normalizer | core/ |
Normalizes boolean fields weirdly: renders them as ๐ (TRUE) or ๐ (FALSE). | 2 | |||
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. | ||||
BootstrapConfigStorageFactory | class | Drupal\Core\Config | core/ |
Defines a factory for retrieving the config storage used pre-kernel. | 2 | |||
Box | class | Drupal\block_content\Plugin\migrate\source\d6 | core/ |
Drupal 6 block source from database. | ||||
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 custom block translations source from database. | ||||
BoxTranslationTest | class | Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d6 | core/ |
Tests i18n custom block translations source plugin. | ||||
Breadcrumb | class | Drupal\Core\Breadcrumb | core/ |
Used to return generated breadcrumbs with associated cacheability metadata. | 12 | |||
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. | 7 | 7 | ||
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/ |
@coversDefaultClass \Drupal\Core\Breadcrumb\BreadcrumbManager[[api-linebreak]] @group Breadcrumb | ||||
BreadcrumbTest | class | Drupal\Tests\Core\Breadcrumb | core/ |
@coversDefaultClass \Drupal\Core\Breadcrumb\Breadcrumb[[api-linebreak]] @group 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. |
Pagination
- Previous page
- Page 13
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.