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 |
---|---|---|---|---|---|---|---|---|
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. | 1 | 1 | ||
LocalRedirectResponse | class | Drupal\Core\Routing | core/ |
Provides a redirect response which cannot redirect to an external URL. | 2 | |||
LocalStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper base class for local files. | 6 | 3 | ||
LocalTaskDefault | class | Drupal\Core\Menu | core/ |
Default object used for LocalTaskPlugins. | 6 | 6 | 3 | |
LocalTaskDefaultTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @group Menu | ||||
LocalTaskIntegrationTestBase | abstract class | Drupal\Tests\Core\Menu | core/ |
Defines a base unit test for testing existence of local tasks. | 14 | 14 | ||
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 | 1 | ||
LocalTaskManagerTest | class | Drupal\Tests\Core\Menu | core/ |
@coversDefaultClass \Drupal\Core\Menu\LocalTaskManager @group Menu | ||||
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/ |
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 | |||
LockBackendAbstract | abstract class | Drupal\Core\Lock | core/ |
Non backend related common methods implementation for lock backends. | 1 | |||
LockBackendAbstractTest | class | Drupal\Tests\Core\Lock | core/ |
@coversDefaultClass \Drupal\Tests\Core\Lock\LockBackendAbstractTest @group Lock | ||||
LockBackendInterface | interface | Drupal\Core\Lock | core/ |
Lock backend interface. | 4 | 26 | ||
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\Core\Database | core/ |
Database query logger. | ||||
Log | class | Drupal\migrate\Plugin\migrate\process | core/ |
Logs values without changing them. | ||||
LoggedStatementsTrait | trait | Drupal\database_statement_monitoring_test | core/ |
Trait for Connection classes that can store logged statements. | 3 | |||
LoggerChannel | class | Drupal\Core\Logger | core/ |
Defines a logger channel that most implementations will use. | 1 | 5 | ||
LoggerChannelFactory | class | Drupal\Core\Logger | core/ |
Defines a factory for logging channels. | 2 | 2 | ||
LoggerChannelFactoryInterface | interface | Drupal\Core\Logger | core/ |
Logger channel factory interface. | 1 | 7 | ||
LoggerChannelFactoryTest | class | Drupal\Tests\Core\Logger | core/ |
@coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory @group Logger | ||||
LoggerChannelInterface | interface | Drupal\Core\Logger | core/ |
Logger channel interface. | 1 | 3 | ||
LoggerChannelTest | class | Drupal\Tests\Core\Logger | core/ |
@coversDefaultClass \Drupal\Core\Logger\LoggerChannel @group Logger | ||||
LoggerChannelTrait | trait | Drupal\Core\Logger | core/ |
Wrapper methods for the logger factory service. | 3 | |||
LoggingForm | class | Drupal\system\Form | core/ |
Configure logging settings for this site. | 2 | |||
LoggingTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the query logging facility. | ||||
LoginLogoutMenuLink | class | Drupal\user\Plugin\Menu | core/ |
A menu link that shows "Log in" or "Log out" as appropriate. | 1 | |||
LoginStatusCheck | class | Drupal\user\Access | core/ |
Determines access to routes based on login status of current user. | 2 | |||
LogMessageParser | class | Drupal\Core\Logger | core/ |
Parses log messages and their placeholders. | 1 | 2 | ||
LogMessageParserInterface | interface | Drupal\Core\Logger | core/ |
Defines an interface for parsing log messages and their placeholders. | 1 | 2 | ||
LogMessageParserTest | class | Drupal\Tests\Core\Logger | core/ |
@coversDefaultClass \Drupal\Core\Logger\LogMessageParser @group Logger | ||||
LogTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the Log process plugin. | ||||
LonelyMonkeyClass | class | Drupal\error_service_test | core/ |
A class with a single dependency. | 1 | 2 | ||
LonelyMonkeyController | class | Drupal\error_service_test\Controller | core/ |
Provides a controller which calls out to a service with missing dependencies. | ||||
MachineName | class | Drupal\migrate\Plugin\migrate\process | core/ |
Creates a machine name. | 1 | |||
MachineName | class | Drupal\Core\Render\Element | core/ |
Provides a machine name render element. | 1 | |||
MachineName | class | Drupal\views\Plugin\views\field | core/ |
Field handler which allows to show machine name content as human name. | ||||
MachineNameController | class | Drupal\system | core/ |
Controller routines for machine name transliteration routes. | 1 | |||
MachineNameControllerTest | class | Drupal\Tests\system\Unit\Transliteration | core/ |
Tests that the machine name controller can transliterate strings as expected. | ||||
MachineNameTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the machine name process plugin. | ||||
MachineNameTest | class | Drupal\FunctionalJavascriptTests\Core | core/ |
Tests for the machine name field. | ||||
MachineNameTest | class | Drupal\Tests\Core\Render\Element | core/ |
@coversDefaultClass \Drupal\Core\Render\Element\MachineName @group Render |
Pagination
- Previous page
- Page 99
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.