Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
LayoutBuilderTestBase | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests the Layout Builder UI. | 5 | |||
LayoutBuilderTestPlugin | class | Drupal\layout_builder_test\Plugin\Layout | core/ |
The Layout Builder Test Plugin. | ||||
LayoutBuilderThemeSuggestionsTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests template suggestions. | ||||
LayoutBuilderToolbarTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Test Layout Builder integration with Toolbar. | ||||
LayoutBuilderTranslationTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests that the Layout Builder works with translated content. | ||||
LayoutBuilderUiCacheContext | class | Drupal\layout_builder\Cache | core/ |
Determines if an entity is being viewed in the Layout Builder UI. | 2 | |||
LayoutBuilderUiTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests the Layout Builder UI. | ||||
LayoutBuilderViewModeTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests the Layout Builder UI with view modes. | ||||
LayoutBuilderWidget | class | Drupal\layout_builder\Plugin\Field\FieldWidget | core/ |
A widget to display the layout form. | ||||
LayoutDefault | class | Drupal\Core\Layout | core/ |
Provides a default class for Layout plugins. | 10 | 15 | 2 | |
LayoutDefaultTest | class | Drupal\Tests\Core\Layout | core/ |
@coversDefaultClass \Drupal\Core\Layout\LayoutDefault[[api-linebreak]] @group Layout | ||||
LayoutDefinition | class | Drupal\Core\Layout | core/ |
Provides an implementation of a layout definition and its metadata. | 7 | |||
LayoutDeriver | class | Drupal\Tests\Core\Layout | core/ |
Provides a dynamic layout deriver for the test. | ||||
LayoutDisplayTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests functionality of the entity view display with regard to Layout Builder. | ||||
LayoutEntityDisplayInterface | interface | Drupal\layout_builder\Entity | core/ |
Provides an interface for entity displays that have layout. | 1 | 11 | ||
LayoutEntityDisplayNormalizer | class | Drupal\layout_builder\Normalizer | core/ |
Normalizes/denormalizes LayoutEntityDisplay objects into an array structure. | 1 | |||
LayoutEntityHelperTrait | trait | Drupal\layout_builder | core/ |
Methods to help with entities using the layout builder. | 4 | |||
LayoutEntityHelperTraitTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait[[api-linebreak]] | ||||
LayoutEntityHelperTraitTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait[[api-linebreak]] | ||||
LayoutForm | final class | Drupal\navigation\Form | core/ |
Defines a form for configuring navigation blocks. | 1 | |||
LayoutInterface | interface | Drupal\Core\Layout | core/ |
Provides an interface for static Layout plugins. | 1 | 7 | 1 | |
LayoutPluginManager | class | Drupal\Core\Layout | core/ |
Provides a plugin manager for layouts. | 1 | 2 | ||
LayoutPluginManagerInterface | interface | Drupal\Core\Layout | core/ |
Provides the interface for a plugin manager of layouts. | 1 | 8 | ||
LayoutPluginManagerTest | class | Drupal\KernelTests\Core\Layout | core/ |
@coversDefaultClass \Drupal\Core\Layout\LayoutPluginManager[[api-linebreak]] @group Layout | ||||
LayoutPluginManagerTest | class | Drupal\Tests\Core\Layout | core/ |
@coversDefaultClass \Drupal\Core\Layout\LayoutPluginManager[[api-linebreak]] @group Layout | ||||
LayoutPreviewAccessAllowed | class | Drupal\layout_builder\Access | core/ |
Accessible class to allow access for inline blocks in the Layout Builder. | 2 | |||
LayoutRebuildConfirmFormBase | abstract class | Drupal\layout_builder\Form | core/ |
Provides a base class for confirmation forms that rebuild the Layout Builder. | 2 | |||
LayoutRebuildTrait | trait | Drupal\layout_builder\Controller | core/ |
Provides AJAX responses to rebuild the Layout Builder. | 4 | |||
LayoutRestTestBase | abstract class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Base class for Layout Builder REST tests. | 1 | |||
LayoutSectionItem | class | Drupal\layout_builder\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'layout_section' field type. | ||||
LayoutSectionItemList | class | Drupal\layout_builder\Field | core/ |
Defines an item list class for layout section fields. | 1 | |||
LayoutSectionItemListTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests the field type for Layout Sections. | ||||
LayoutSectionStorageParamConverter | class | Drupal\layout_builder\Routing | core/ |
Loads the section storage from the routing defaults. | 1 | 2 | ||
LayoutSectionStorageParamConverterTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter[[api-linebreak]] | ||||
LayoutSectionTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests the rendering of a layout section field. | ||||
LayoutTempstoreRepository | class | Drupal\layout_builder | core/ |
Provides a mechanism for loading layouts from tempstore. | 1 | 2 | ||
LayoutTempstoreRepositoryInterface | interface | Drupal\layout_builder | core/ |
Provides an interface for loading layouts from tempstore. | 1 | 16 | ||
LayoutTempstoreRepositoryTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\LayoutTempstoreRepository[[api-linebreak]] @group layout_builder | ||||
LayoutTempstoreRouteEnhancer | class | Drupal\layout_builder\Routing | core/ |
Loads the section storage from the layout tempstore. | 1 | 2 | ||
LayoutTempstoreRouteEnhancerTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer[[api-linebreak]] | ||||
LayoutTest | class | Drupal\Tests\layout_discovery\Kernel | core/ |
Tests Layout functionality. | ||||
LayoutTestDependenciesPlugin | class | Drupal\layout_test\Plugin\Layout | core/ |
Provides a plugin that contains config dependencies. | ||||
LayoutTestPlugin | class | Drupal\layout_test\Plugin\Layout | core/ |
The plugin that handles the default layout template. | ||||
LayoutWithoutLabel | class | Drupal\layout_builder_test\Plugin\Layout | core/ |
Layout plugin without a label configuration. | ||||
LazyBuilders | final class | Drupal\announcements_feed | core/ |
Defines a class for lazy building render arrays. | 2 | |||
LazyContextRepository | class | Drupal\Core\Plugin\Context | core/ |
Provides a context repository which uses context provider services. | 2 | 2 | ||
LazyContextRepositoryTest | class | Drupal\Tests\Core\Plugin\Context | core/ |
@coversDefaultClass \Drupal\Core\Plugin\Context\LazyContextRepository[[api-linebreak]] @group context | ||||
LazyPluginCollection | abstract class | Drupal\Component\Plugin | core/ |
Defines an object which stores multiple plugin instances to lazy load them. | 3 | 3 | ||
LazyPluginCollectionTestBase | abstract class | Drupal\Tests\Core\Plugin | core/ |
Provides a base class for plugin collection tests. | 2 | |||
LazyRouteCollection | class | Drupal\Core\Routing | core/ |
1 |
Pagination
- Previous page
- Page 101
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.