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 |
|---|---|---|---|---|---|---|---|---|
| LocaleStringTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests the locale string storage, string objects and data API. | ||||
| LocaleTestDevelopmentReleaseHooks | class | Drupal\locale_test_development_release\Hook | core/ |
Hook implementations for locale_test_development_release. | ||||
| LocaleTestHooks | class | Drupal\locale_test\Hook | core/ |
Hook implementations for locale_test. | ||||
| LocaleTestTranslateHooks | class | Drupal\locale_test_translate\Hook | core/ |
Hook implementations for locale_test_translate. | ||||
| LocaleThemeHooks | class | Drupal\locale\Hook | core/ |
Hook implementations for locale. | ||||
| LocaleTranslatableProject | class | Drupal\locale | core/ |
Translatable project for interface translation. | 2 | |||
| LocaleTranslatedSchemaDefinitionTest | class | Drupal\Tests\locale\Functional | core/ |
Adds and configures languages to check field schema definition. | ||||
| LocaleTranslation | class | Drupal\locale | core/ |
String translator using the locale module. | 2 | 2 | ||
| LocaleTranslation | class | Drupal\locale\Plugin\QueueWorker | core/ |
Executes interface translation queue tasks. | ||||
| LocaleTranslationCacheTag | class | Drupal\locale\EventSubscriber | core/ |
A subscriber invalidating cache tags when translating a string. | 2 | |||
| LocaleTranslationChangeProjectVersionTest | class | Drupal\Tests\locale\Functional | core/ |
Tests how translations are handled when a project gets updated. | ||||
| LocaleTranslationDownloadTest | class | Drupal\Tests\locale\Functional | core/ |
Tests locale translation download. | ||||
| LocaleTranslationProjectsTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests locale translation project handling. | ||||
| LocaleTranslationSource | class | Drupal\locale | core/ |
Provides source and translation status information for a project/langcode. | 1 | |||
| LocaleTranslationTest | class | Drupal\Tests\locale\Unit | core/ |
Tests Drupal\locale\LocaleTranslation. | ||||
| LocaleTranslationTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests Drupal\locale\LocaleTranslation. | ||||
| LocaleTranslationUiTest | class | Drupal\Tests\locale\Functional | core/ |
Tests the validation of translation strings and search results. | ||||
| LocaleUpdateBase | abstract class | Drupal\Tests\locale\Functional | core/ |
Base class for testing updates to string translations. | 6 | |||
| LocaleUpdateCronTest | class | Drupal\Tests\locale\Functional | core/ |
Tests for using cron to update project interface translations. | ||||
| LocaleUpdateDevelopmentReleaseTest | class | Drupal\Tests\locale\Functional | core/ |
Test for proper version fallback in case of a development release. | ||||
| LocaleUpdateInterfaceTest | class | Drupal\Tests\locale\Functional | core/ |
Tests for the user interface of project interface translations. | ||||
| LocaleUpdateTest | class | Drupal\Tests\locale\Kernel | core/ |
Tests for updating the interface translations of projects. | ||||
| LocaleUpdateTest | class | Drupal\Tests\locale\Functional | core/ |
Tests for updating the interface translations of projects. | ||||
| LocalReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class for local files. | 2 | 1 | ||
| LocalRedirectResponse | class | Drupal\Core\Routing | core/ |
Provides a redirect response which cannot redirect to an external URL. | 4 | |||
| LocalStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper base class for local files. | 6 | 5 | ||
| LocalTaskDefault | class | Drupal\Core\Menu | core/ |
Default object used for LocalTaskPlugins. | 5 | 5 | 4 | |
| LocalTaskDefaultTest | class | Drupal\Tests\Core\Menu | core/ |
Tests Drupal\Core\Menu\LocalTaskDefault. | ||||
| LocalTaskIntegrationTestBase | abstract class | Drupal\Tests\Core\Menu | core/ |
Defines a base unit test for testing existence of local tasks. | 11 | 11 | ||
| LocalTaskInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu local tasks. | 1 | 1 | ||
| LocalTaskManager | class | Drupal\Core\Menu | core/ |
Provides the default local task manager using YML as primary definition. | 2 | 2 | ||
| LocalTaskManagerInterface | interface | Drupal\Core\Menu | core/ |
Manages discovery and instantiation of menu local task plugins. | 1 | 2 | ||
| LocalTaskManagerTest | class | Drupal\Tests\Core\Menu | core/ |
Tests Drupal\Core\Menu\LocalTaskManager. | ||||
| LocalTasksBlock | class | Drupal\Core\Menu\Plugin\Block | core/ |
Provides a "Tabs" block to display the local tasks. | ||||
| LocalTasksTest | class | Drupal\Tests\system\Functional\Menu | core/ |
Tests local tasks derived from router and added/altered via hooks. | ||||
| LocalTaskTest | class | Drupal\menu_test\Plugin\Derivative | core/ |
Tests derivative for testing local tasks. | 1 | |||
| LocalTaskTestWithUnsafeTitle | class | Drupal\menu_test\Plugin\Derivative | core/ |
Test derivative to check local task title escaping. | 1 | |||
| Lock | final class | Drupal\Core\TempStore | core/ |
Provides a value object representing the lock from a TempStore. | 4 | |||
| LockAcquiringException | class | Drupal\Core\Lock | core/ |
LockAcquiringException is thrown when a lock cannot be acquired. | 5 | |||
| LockBackendAbstract | abstract class | Drupal\Core\Lock | core/ |
Non backend related common methods implementation for lock backends. | 2 | 2 | ||
| LockBackendAbstractTest | class | Drupal\Tests\Core\Lock | core/ |
Tests Drupal\Core\Lock\LockBackendAbstract. | ||||
| LockBackendInterface | interface | Drupal\Core\Lock | core/ |
Lock backend interface. | 4 | 46 | ||
| LockFileValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the active lock file is unchanged during stage operations. | 2 | |||
| LockFileValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\Validator\LockFileValidator. | ||||
| LockFunctionalTest | class | Drupal\Tests\system\Functional\Lock | core/ |
Confirm locking works between two separate requests. | ||||
| LockTest | class | Drupal\KernelTests\Core\Lock | core/ |
Tests the Database lock backend. | ||||
| Log | class | Drupal\migrate\Plugin\migrate\process | core/ |
Logs values without changing them. | 1 | |||
| Log | class | Drupal\Core\Database | core/ |
Database query logger. | 3 | |||
| LoggerAwarePass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Sets the logger on all services that implement LoggerAwareInterface. | 2 | |||
| LoggerAwarePassTest | class | Drupal\Tests\system\Kernel\DependencyInjection\CompilerPass | core/ |
Tests the logger aware compiler pass. |
Pagination
- Previous page
- Page 117
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.