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 |
---|---|---|---|---|---|---|---|---|
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 | 14 | ||
LayoutTempstoreRepositoryTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\LayoutTempstoreRepository @group layout_builder | ||||
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. | ||||
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 @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 | |||
LazyRouteProviderInstallTest | class | Drupal\FunctionalTests\Routing | core/ |
@group routing | ||||
LegacyAliasStorageTest | class | Drupal\KernelTests\Core\Path | core/ |
@coversDefaultClass \Drupal\Core\Path\AliasStorage @group path @group legacy | ||||
LegacyBlockPluginIdTest | class | Drupal\Tests\block\Unit\Plugin\migrate\process | core/ |
Tests legacy usage of BlockPluginId. | ||||
LegacyBlockVisibilityTest | class | Drupal\Tests\block\Unit\Plugin\migrate\process | core/ |
Tests the block_visibility process plugin. | ||||
LegacyContentEntityStorageBaseTest | class | Drupal\Tests\Core\Entity | core/ |
Tests deprecated methods of ContentEntityStorageBase. | ||||
LegacyDestinationCategoryTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate | core/ |
Extends DestinationCategoryTest to test with deprecated modules. | ||||
LegacyEntityDisplayBaseTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Deprecated EntityDisplayBase functionality. | ||||
LegacyFieldTypePluginManagerTest | class | Drupal\Tests\field\Kernel | core/ |
Extends FieldTypePluginManagerTest to test with deprecated modules. | ||||
LegacyFileTest | class | Drupal\Tests\file\Unit | core/ |
Provides unit tests for file module deprecation errors. | ||||
LegacyForumTest | class | Drupal\Tests\forum\Kernel | core/ |
Tests Legacy forum code. | ||||
LegacyFunctionsTest | class | Drupal\KernelTests\Core\Common | core/ |
Tests legacy functions in common.inc. | ||||
LegacyHelpTopicsSyntaxTest | class | Drupal\Tests\help_topics\Functional | core/ |
Extends HelpTopicsSyntaxTest to test with deprecated modules. | ||||
LegacyJavascriptTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalJavascriptTests\WebDriverTestBase instead BC layer for testing browser interaction implemented in JavaScript. |
abstract class | Drupal\FunctionalJavascriptTests | core/ |
Runs a browser test using PhantomJS. | |||
LegacyLibraryDiscoveryTest | class | Drupal\KernelTests\Core\Asset | core/ |
Tests that deprecated asset libraries trigger a deprecation error. | ||||
LegacyMessenger | in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\Messenger instead. |
class | Drupal\Core\Messenger | core/ |
Provides a LegacyMessenger implementation. | 2 | ||
LegacyMigrateDrupal6AuditIdsTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Extends MigrateDrupal6AuditIdsTest to test with deprecated modules. | ||||
LegacyMigrateDrupal7AuditIdsTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Extends MigrateDrupal7AuditIdsTest to test with deprecated modules. | ||||
LegacyMigrateUrlAliasTest | class | Drupal\Tests\path\Kernel\Migrate\d6 | core/ |
Tests legacy URL alias migration. | ||||
LegacyMigrateUrlAliasTest | class | Drupal\Tests\path\Kernel\Migrate\d7 | core/ |
Tests legacy URL alias migration. | ||||
LegacyMigrationLabelExistTest | class | Drupal\Tests\migrate_drupal_ui\Kernel | core/ |
Extends MigrationLabelExistTest to test with deprecated modules. | ||||
LegacyMigrationLookupTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests deprecated features of the migration lookup plugin. | ||||
LegacyMigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Extends Drupal\Tests\migrate_drupal\Kernel\d6\MigrationProcessTest to test with deprecated modules. | ||||
LegacyMigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Extends Drupal\Tests\migrate_drupal\Kernel\d7\MigrationProcessTest to test with deprecated modules. | ||||
LegacyMigrationProvidersExistTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Extends MigrationProvidersExistTest to test with deprecated modules. | ||||
LegacyStateFileExists | class | Drupal\Tests\migrate_drupal\Kernel | core/ |
Extends StateFileExists to test with deprecated modules. | ||||
LegacyStyleSheetsRemoveTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests the legacy stylesheets-remove key. | ||||
LegacyThemeHandlerTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests deprecated theme handler methods. | ||||
LegacyValidateMigrationStateTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Extends Drupal\Tests\migrate_drupal\Kernel\d6\ValidateMigrationStateTest to test with deprecated modules. | ||||
LegacyValidateMigrationStateTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Extends Drupal\Tests\migrate_drupal\Kernel\d7\ValidateMigrationStateTest to test with deprecated modules. | ||||
LengthConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Length constraint. | ||||
LibrariesDirectoryFileFinder | class | Drupal\Core\Asset | core/ |
Finds files that are located in the supported 'libraries' directories. | 2 | 2 | ||
LibrariesDirectoryFileFinderTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibrariesDirectoryFileFinder @group Asset | ||||
LibraryCachingTest | class | Drupal\Tests\views_ui\FunctionalJavascript | core/ |
Tests the JavaScript library caching on consecutive requests. | ||||
LibraryDefinitionMissingLicenseException | class | Drupal\Core\Asset\Exception | core/ |
Defines a custom exception if a library has a remote but no license. | 2 | |||
LibraryDependencyResolver | class | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | 2 | ||
LibraryDependencyResolverInterface | interface | Drupal\Core\Asset | core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | |||
LibraryDependencyResolverTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver @group Asset | ||||
LibraryDiscovery | class | Drupal\Core\Asset | core/ |
Discovers available asset libraries in Drupal. | 1 | 2 | ||
LibraryDiscoveryCollector | class | Drupal\Core\Asset | core/ |
A CacheCollector implementation for building library extension info. | 1 | 2 | ||
LibraryDiscoveryCollectorTest | class | Drupal\Tests\Core\Asset | core/ |
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryCollector @group Asset |
Pagination
- Previous page
- Page 95
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.