Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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/ |
Tests Drupal\content_moderation\Access\LatestRevisionCheck. | ||||
| 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\Attribute | core/ |
Defines a Layout attribute object. | 8 | |||
| Layout | class | Drupal\Core\Layout\Annotation | core/ |
Defines a Layout annotation object. | ||||
| LayoutAttributeTest | class | Drupal\Tests\Core\Layout | core/ |
Tests the Layout attribute. | ||||
| 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. | ||||
| LayoutBuilderBlockContentDependencyTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Test for installing Layout Builder before Block Content in the same request. | ||||
| LayoutBuilderBlockContentDependencyTestThemeHooks | class | Drupal\layout_builder_block_content_dependency_test\Hook | core/ |
Hook implementations for layout_builder_block_content_dependency_test. | ||||
| LayoutBuilderBlocksTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests the Layout Builder UI with blocks. | ||||
| LayoutBuilderBreadcrumbAlterTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests layout_builder_system_breadcrumb_alter(). | ||||
| LayoutBuilderCompatibilityTestBase | abstract class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Layout Builder's compatibility with existing systems. | 2 | |||
| LayoutBuilderContentModerationIntegrationTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests Content Moderation's integration with Layout Builder. | ||||
| LayoutBuilderContextTrait | trait | Drupal\layout_builder\Context | core/ |
Provides a wrapper around getting contexts from a section storage object. | 6 | |||
| LayoutBuilderController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to provide the Layout Builder admin UI. | ||||
| LayoutBuilderDefaultValuesTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests rendering default field values in Layout Builder. | ||||
| 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 | 2 | ||
| LayoutBuilderEntityFormTrait | trait | Drupal\layout_builder\Form | core/ |
Provides a trait for common methods used in Layout Builder entity forms. | 1 | |||
| LayoutBuilderEntityViewDisplay | class | Drupal\layout_builder\Entity | core/ |
Provides an entity view display entity that has a layout. | 2 | 44 | ||
| LayoutBuilderEntityViewDisplay | class | Drupal\layout_builder_override_dependency | core/ |
Provides an entity view display entity that has a layout. | 2 | |||
| LayoutBuilderEntityViewDisplay | class | Drupal\layout_builder_override | core/ |
Provides an entity view display entity that has a layout. | 2 | |||
| LayoutBuilderEntityViewDisplayForm | class | Drupal\layout_builder\Form | core/ |
Edit form for the LayoutBuilderEntityViewDisplay entity type. | 1 | |||
| LayoutBuilderEntityViewDisplayJsonAnonTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Json Anon. | ||||
| LayoutBuilderEntityViewDisplayJsonBasicAuthTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Json Basic Auth. | ||||
| LayoutBuilderEntityViewDisplayJsonCookieTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Json Cookie. | ||||
| LayoutBuilderEntityViewDisplayResourceTestBase | abstract class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Provides a base class for testing LayoutBuilderEntityViewDisplay resources. | 6 | |||
| 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/ |
Tests Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay. | ||||
| LayoutBuilderEntityViewDisplayTest | class | Drupal\Tests\layout_builder\Functional\Jsonapi | core/ |
JSON:API integration test for the "EntityViewDisplay" config entity type. | ||||
| LayoutBuilderEntityViewDisplayValidationTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests validation of Layout Builder's entity_view_display entities. | ||||
| LayoutBuilderEntityViewDisplayXmlAnonTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Xml Anon. | ||||
| LayoutBuilderEntityViewDisplayXmlBasicAuthTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Xml Basic Auth. | ||||
| LayoutBuilderEntityViewDisplayXmlCookieTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests Layout Builder Entity View Display Xml Cookie. | ||||
| LayoutBuilderEvents | final class | Drupal\layout_builder | core/ |
Defines events for the layout_builder module. | 5 | |||
| LayoutBuilderExposeAllFieldBlocksHooks | class | Drupal\layout_builder_expose_all_field_blocks\Hook | core/ |
Hook implementations for layout_builder_expose_all_field_blocks. | ||||
| LayoutBuilderExtraFieldTestHooks | class | Drupal\layout_builder_extra_field_test\Hook | core/ |
Hook implementations for layout_builder_extra_field_test. | ||||
| LayoutBuilderFieldBlockEntityReferenceCacheTagsTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests cache tags on entity reference field blocks in Layout Builder. | ||||
| LayoutBuilderFormBlockTestHooks | class | Drupal\layout_builder_form_block_test\Hook | core/ |
Hooks for layout_builder_form_block_test. | ||||
| LayoutBuilderFormModeTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests Layout Builder forms. | ||||
| LayoutBuilderHighlightTrait | trait | Drupal\layout_builder | core/ |
A trait for generating IDs used to highlight active UI elements. | 8 | |||
| LayoutBuilderHooks | class | Drupal\layout_builder\Hook | core/ |
Hook implementations for layout_builder. | 3 | |||
| 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. | 1 | 2 |
Pagination
- Previous page
- Page 109
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.