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 |
|---|---|---|---|---|---|---|---|---|
| LayoutEntityHelperTraitTest | class | Drupal\Tests\layout_builder\Unit | core/ |
Tests Drupal\layout_builder\LayoutEntityHelperTrait. | ||||
| LayoutEntityHelperTraitTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Drupal\layout_builder\LayoutEntityHelperTrait. | ||||
| 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 | 5 | 1 | |
| LayoutOverrideFieldHelper | class | Drupal\layout_builder | core/ |
Provides methods to help with entities using Layout Builder. | 1 | |||
| LayoutPluginManager | class | Drupal\Core\Layout | core/ |
Provides a plugin manager for layouts. | 3 | 2 | ||
| LayoutPluginManagerExceptionTest | class | Drupal\Tests\Core\Layout | core/ |
Tests Drupal\Core\Layout\LayoutPluginManager exceptions. | ||||
| LayoutPluginManagerInterface | interface | Drupal\Core\Layout | core/ |
Provides the interface for a plugin manager of layouts. | 1 | 5 | ||
| LayoutPluginManagerTest | class | Drupal\Tests\Core\Layout | core/ |
Tests Drupal\Core\Layout\LayoutPluginManager. | ||||
| LayoutPluginManagerTest | class | Drupal\KernelTests\Core\Layout | core/ |
Tests Drupal\Core\Layout\LayoutPluginManager. | ||||
| 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. | 1 | |||
| LayoutSectionItemList | class | Drupal\layout_builder\Field | core/ |
Defines an item list class for layout section fields. | 2 | |||
| 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/ |
Tests Drupal\layout_builder\Routing\LayoutSectionStorageParamConverter. | ||||
| 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 | 2 | |
| LayoutTempstoreRepositoryInterface | interface | Drupal\layout_builder | core/ |
Provides an interface for loading layouts from tempstore. | 1 | 17 | ||
| LayoutTempstoreRepositoryTest | class | Drupal\Tests\layout_builder\Unit | core/ |
Tests Drupal\layout_builder\LayoutTempstoreRepository. | ||||
| 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/ |
Tests Drupal\layout_builder\Routing\LayoutTempstoreRouteEnhancer. | ||||
| 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. | ||||
| LayoutTestThemeHooks | class | Drupal\layout_test\Hook | core/ |
Hook implementations for layout_test. | ||||
| LayoutWithoutLabel | class | Drupal\layout_builder_test\Plugin\Layout | core/ |
Layout plugin without a label configuration. | ||||
| LazyBuilderPlaceholderTest | class | Drupal\KernelTests\Core\Render | core/ |
Tests Fiber suspension within Twig templates during placeholder rendering. | ||||
| 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. | 1 | 2 | ||
| LazyContextRepositoryTest | class | Drupal\Tests\Core\Plugin\Context | core/ |
Tests Drupal\Core\Plugin\Context\LazyContextRepository. | ||||
| 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/ |
The lazy route collection. | 1 | |||
| LazyRouteCollectionTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\LazyRouteCollection. | ||||
| LazyRouteProviderInstallTest | class | Drupal\FunctionalTests\Routing | core/ |
Tests Lazy Route Provider Install. | ||||
| LazyRouteProviderInstallTestHooks | class | Drupal\lazy_route_provider_install_test\Hook | core/ |
Hook implementations for lazy_route_provider_install_test. | ||||
| LeaveProfileNode | class | Drupal\sdc_other_node_visitor\Twig\Profiler | core/ |
Represents a profile leave node. | 1 | |||
| LegacyFileSystemTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the legacy file system functions. | ||||
| LegacyHook | class | Drupal\Core\Hook\Attribute | core/ |
Defines a LegacyHook attribute object. | 6 | |||
| LegacyHookTest | class | Drupal\Tests\system\Functional\Extension | core/ |
Tests the LegacyHook attribute. | ||||
| LegacyMimeTypeMapLoadedSubscriber | final class | Drupal\Core\File\EventSubscriber | core/ |
Modifies the MIME type map by calling hook_file_mimetype_mapping_alter(). | ||||
| LegacyMimeTypeTest | class | Drupal\KernelTests\Core\File\MimeType | core/ |
Tests deprecated file features. | ||||
| LegacyModuleImplementsAlter | class | Drupal\Core\Hook\Attribute | core/ |
Prevents procedural hook_module_implements_alter from executing. | 1 | |||
| LegacyRequirementSeverityTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests the legacy requirements severity deprecations. | ||||
| LegacyRequirementsHook | class | Drupal\Core\Hook\Attribute | core/ |
Prevents procedural requirements hook from executing. | 4 | |||
| LegacySessionTest | class | Drupal\Tests\system\Functional\Session | core/ |
Drupal legacy session handling tests. |
Pagination
- Previous page
- Page 111
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.