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 |
---|---|---|---|---|---|---|---|---|
AddCssCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for adding css to the page via ajax. | 3 | |||
AddFeedTest | class | Drupal\Tests\aggregator\Functional | core/ |
Add feed test. | ||||
AddFeedTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Make sure that attaching feeds works correctly with various constructs. | ||||
AddFormBase | abstract class | Drupal\media_library\Form | core/ |
Provides a base class for creating media items from within the media library. | 3 | 1 | ||
AddHandler | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for adding an item in the Views UI. | ||||
AddRoleUser | class | Drupal\user\Plugin\Action | core/ |
Adds a role to a user. | 1 | |||
AddRoleUserTest | class | Drupal\Tests\user\Unit\Plugin\Action | core/ |
@coversDefaultClass \Drupal\user\Plugin\Action\AddRoleUser @group user | ||||
AddSectionController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to add a new section. | ||||
AddStyleSheetCommand | class | Drupal\ckeditor\Ajax | core/ |
AJAX command to add style sheets to a CKEditor instance. | 1 | |||
AdminContext | class | Drupal\Core\Routing | core/ |
Provides a helper class to determine whether the route is an admin one. | 5 | 2 | ||
AdminController | class | Drupal\system\Controller | core/ |
Controller for admin section. | ||||
AdminDemoNegotiator | class | Drupal\block\Theme | core/ |
Negotiates the theme for the block admin demo page via the URL. | 2 | |||
AdminHtmlRouteProvider | class | Drupal\Core\Entity\Routing | core/ |
Provides HTML routes for entities with administrative add/edit/delete pages. | 3 | 4 | ||
AdminMetaTagTest | class | Drupal\Tests\system\Functional\System | core/ |
Confirm that the fingerprinting meta tag appears as expected. | ||||
AdminNegotiator | class | Drupal\user\Theme | core/ |
Sets the active theme on admin pages. | 1 | 2 | ||
AdminNegotiatorTest | class | Drupal\Tests\user\Unit\Theme | core/ |
Tests AdminNegotiator class. | ||||
AdminPathConfigEntityConverter | class | Drupal\Core\ProxyClass\ParamConverter | core/ |
Provides a proxy class for \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter. | ||||
AdminPathConfigEntityConverter | class | Drupal\Core\ParamConverter | core/ |
Makes sure the unmodified ConfigEntity is loaded on admin pages. | 1 | 1 | 2 | |
AdminPathEntityConverterLanguageTest | class | Drupal\Tests\language\Functional | core/ |
Test administration path based conversion of entities. | 1 | 1 | ||
AdminRouteSubscriber | class | Drupal\system\EventSubscriber | core/ |
Adds the _admin_route option to each admin HTML route. | 1 | 2 | ||
AdminRouteSubscriberTest | class | Drupal\Tests\system\Unit\Routing | core/ |
@coversDefaultClass \Drupal\system\EventSubscriber\AdminRouteSubscriber @group system | ||||
AdminTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests output on administrative pages and compact mode functionality. | ||||
AdminThemeUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests system.theme:admin is updated. | ||||
AdvancedSettingsForm | class | Drupal\views_ui\Form | core/ |
Form builder for the advanced admin settings page. | 1 | |||
AfterCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for calling the jQuery after() method. | 2 | |||
AfterSymfonyListener | class | Drupal\TestTools\PhpUnitCompatibility\PhpUnit6 | core/ |
Listens to PHPUnit test runs. | ||||
AfterSymfonyListener | class | Drupal\TestTools\PhpUnitCompatibility\PhpUnit7 | core/ |
Listens to PHPUnit test runs. | ||||
AggregatorAdminTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests aggregator admin pages. | ||||
AggregatorController | class | Drupal\aggregator\Controller | core/ |
Returns responses for aggregator module routes. | ||||
AggregatorCronTest | class | Drupal\Tests\aggregator\Functional | core/ |
Update feeds on cron. | ||||
AggregatorDisplayConfigurableTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests making aggregator_feed and aggregator_item base fields' displays configurable. | ||||
AggregatorFeed | class | Drupal\aggregator\Plugin\migrate\source | core/ |
Drupal feed source from database. | ||||
AggregatorFeedBlock | class | Drupal\aggregator\Plugin\Block | core/ |
Provides an 'Aggregator feed' block with the latest items from the feed. | ||||
AggregatorFeedTest | class | Drupal\Tests\aggregator\Kernel\Plugin\migrate\source | core/ |
Tests D6 aggregator feed source plugin. | ||||
AggregatorFeedViewsData | class | Drupal\aggregator | core/ |
Provides the views data for the aggregator feed entity type. | ||||
AggregatorFeedViewsFieldAccessTest | class | Drupal\Tests\aggregator\Kernel\Views | core/ |
Tests base field access in Views for the aggregator_feed entity. | ||||
AggregatorFetcher | class | Drupal\aggregator\Annotation | core/ |
Defines a Plugin annotation object for aggregator fetcher plugins. | ||||
AggregatorItem | class | Drupal\aggregator\Plugin\migrate\source | core/ |
Drupal aggregator item source from database. | ||||
AggregatorItemTest | class | Drupal\Tests\aggregator\Kernel\Plugin\migrate\source | core/ |
Tests aggregator item source plugin. | ||||
AggregatorItemViewsData | class | Drupal\aggregator | core/ |
Provides the views data for the aggregator item entity type. | ||||
AggregatorItemViewsFieldAccessTest | class | Drupal\Tests\aggregator\Kernel\Views | core/ |
Tests base field access in Views for the aggregator_item entity. | ||||
AggregatorLocalTasksTest | class | Drupal\Tests\aggregator\Unit\Menu | core/ |
Tests existence of aggregator local tasks. | ||||
AggregatorParser | class | Drupal\aggregator\Annotation | core/ |
Defines a Plugin annotation object for aggregator parser plugins. | ||||
AggregatorPluginManager | class | Drupal\aggregator\Plugin | core/ |
Manages aggregator plugins. | 2 | 4 | ||
AggregatorPluginManagerTest | class | Drupal\Tests\aggregator\Kernel | core/ |
Tests the aggregator plugin manager. | ||||
AggregatorPluginSettingsBase | abstract class | Drupal\aggregator\Plugin | core/ |
Base class for aggregator plugins that implement settings forms. | 2 | 2 | ||
AggregatorPluginSettingsBaseTest | class | Drupal\Tests\aggregator\Unit\Plugin | core/ |
Tests settings configuration of individual aggregator plugins. | ||||
AggregatorProcessor | class | Drupal\aggregator\Annotation | core/ |
Defines a Plugin annotation object for aggregator processor plugins. | ||||
AggregatorRefresh | class | Drupal\aggregator\Plugin\QueueWorker | core/ |
Updates a feed's items. | ||||
AggregatorRenderingTest | class | Drupal\Tests\aggregator\Functional | core/ |
Tests display of aggregator items on the page. |
Pagination
- Previous page
- Page 3
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.