Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LanguageTourTest | class | Drupal\Tests\language\Functional | core/ |
Tests tour functionality. | ||||
LanguageTypes | class | Drupal\language\Plugin\migrate\process | core/ |
Processes the array for the language types. | 1 | |||
LanguageTypesTest | class | Drupal\Tests\language\Unit\process | core/ |
@coversDefaultClass \Drupal\language\Plugin\migrate\process\LanguageTypes @group language | ||||
LanguageUILanguageNegotiationTest | class | Drupal\Tests\language\Functional | core/ |
Tests the language UI for language switching. | ||||
LanguageUnitTest | class | Drupal\Tests\Core\Language | core/ |
@coversDefaultClass \Drupal\Core\Language\Language @group Language | ||||
LanguageUrlRewritingTest | class | Drupal\Tests\language\Functional | core/ |
Tests that URL rewriting works as expected. | ||||
LargeQueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests handling of large queries. | ||||
LastTimestamp | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the timestamp of a comment with the count of comments. | ||||
LatestRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest revision of an entity. | ||||
LatestRevisionCheck | class | Drupal\content_moderation\Access | core/ |
Access check for the entity moderation tab. | 2 | 2 | ||
LatestRevisionCheckTest | class | Drupal\Tests\content_moderation\Unit | core/ |
@coversDefaultClass \Drupal\content_moderation\Access\LatestRevisionCheck @group content_moderation | ||||
LatestRevisionFilterTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests the 'Latest revision' filter. | ||||
LatestTranslationAffectedRevision | class | Drupal\views\Plugin\views\filter | core/ |
Filter to show only the latest translation affected revision of an entity. | ||||
LatestTranslationAffectedRevisionTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests the 'Latest translation affected revision' filter. | ||||
Layout | class | Drupal\Core\Layout\Annotation | core/ |
Defines a Layout annotation object. | 1 | |||
LayoutBuilder | class | Drupal\layout_builder\Element | core/ |
Defines a render element for building the Layout Builder UI. | ||||
LayoutBuilderAccessCheck | class | Drupal\layout_builder\Access | core/ |
Provides an access check for the Layout Builder defaults. | 2 | |||
LayoutBuilderAccessTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests access to Layout Builder. | ||||
LayoutBuilderCompatibilityTestBase | abstract class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Layout Builder's compatibility with existing systems. | 3 | 1 | ||
LayoutBuilderContentModerationIntegrationTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests Content Moderation's integration with Layout Builder. | ||||
LayoutBuilderContextMappingUpdatePathTest | class | Drupal\Tests\layout_builder\Functional\Update | core/ |
Tests context-aware blocks after the context changes to section storage. | ||||
LayoutBuilderContextTrait | trait | Drupal\layout_builder\Context | core/ |
Provides a wrapper around getting contexts from a section storage object. | 3 | |||
LayoutBuilderController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to provide the Layout Builder admin UI. | ||||
LayoutBuilderDisableForm | class | Drupal\layout_builder\Form | core/ |
Disables Layout Builder for a given default. | ||||
LayoutBuilderDisableInteractionsTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests the Layout Builder disables interactions of rendered blocks. | ||||
LayoutBuilderEnabledInterface | interface | Drupal\layout_builder | core/ |
Provides methods for enabling and disabling Layout Builder. | 2 | 1 | ||
LayoutBuilderEnableUpdatePathTest | class | Drupal\Tests\layout_builder\Functional\Update | core/ |
Tests the upgrade path for enabling Layout Builder. | ||||
LayoutBuilderEntityViewDisplay | class | Drupal\layout_builder\Entity | core/ |
Provides an entity view display entity that has a layout. | 14 | |||
LayoutBuilderEntityViewDisplayForm | class | Drupal\layout_builder\Form | core/ |
Edit form for the LayoutBuilderEntityViewDisplay entity type. | 1 | |||
LayoutBuilderEntityViewDisplayHalJsonAnonTest | class | Drupal\Tests\layout_builder\Functional\Hal | core/ |
@group layout_builder @group rest | 1 | |||
LayoutBuilderEntityViewDisplayHalJsonBasicAuthTest | class | Drupal\Tests\layout_builder\Functional\Hal | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayHalJsonCookieTest | class | Drupal\Tests\layout_builder\Functional\Hal | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayJsonAnonTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayJsonBasicAuthTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayJsonCookieTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayResourceTestBase | abstract class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Provides a base class for testing LayoutBuilderEntityViewDisplay resources. | 7 | 1 | ||
LayoutBuilderEntityViewDisplayStorage | class | Drupal\layout_builder\Entity | core/ |
Provides storage for entity view display entities that have layouts. | 1 | |||
LayoutBuilderEntityViewDisplayTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay | ||||
LayoutBuilderEntityViewDisplayTest | class | Drupal\Tests\layout_builder\Functional\Jsonapi | core/ |
JSON:API integration test for the "EntityViewDisplay" config entity type. | ||||
LayoutBuilderEntityViewDisplayXmlAnonTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayXmlBasicAuthTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEntityViewDisplayXmlCookieTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
@group layout_builder @group rest | ||||
LayoutBuilderEvents | final class | Drupal\layout_builder | core/ |
Defines events for the layout_builder module. | 2 | |||
LayoutBuilderFieldBlockEntityReferenceCacheTagsTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests cache tags on entity reference field blocks in Layout Builder. | ||||
LayoutBuilderFieldLayoutCompatibilityTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Ensures that Layout Builder and Field Layout are compatible with each other. | ||||
LayoutBuilderHighlightTrait | trait | Drupal\layout_builder | core/ |
A trait for generating IDs used to highlight active UI elements. | 8 | |||
LayoutBuilderHtmlEntityFormController | class | Drupal\layout_builder\Controller | core/ |
Overrides the entity form controller service for layout builder operations. | 2 | |||
LayoutBuilderInstallTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Ensures that Layout Builder and core EntityViewDisplays are compatible. | ||||
LayoutBuilderIsActiveCacheContext | class | Drupal\layout_builder\Cache | core/ |
Determines whether Layout Builder is active for a given entity type or not. | 2 | |||
LayoutBuilderLocalTaskDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides local task definitions for the layout builder user interface. | 1 |
Pagination
- Previous page
- Page 93
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.