Classes, traits, and interfaces - 9.5.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 1523 
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings | 
|---|---|---|---|---|---|---|---|---|
| AddFeedTest | class | Drupal\Tests\aggregator\Functional | core/ | Add feed test. | ||||
| 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. | ||||
| AddJsCommand | class | Drupal\Core\Ajax | core/ | An AJAX command for adding JS to the page via AJAX. | 1 | |||
| 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[[api-linebreak]] @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 | |||
| AdminAjaxTest | class | Drupal\Tests\views_ui\FunctionalJavascript | core/ | Tests the admin UI AJAX interactions. | ||||
| 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[[api-linebreak]] @group system | ||||
| AdminTest | class | Drupal\Tests\system\Functional\System | core/ | Tests output on administrative pages and compact mode functionality. | ||||
| AdminUiTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ | Tests for CKEditor 5 in the admin UI. | ||||
| AdvancedSettingsForm | class | Drupal\views_ui\Form | core/ | Form builder for the advanced admin settings page. | 1 | |||
| AdvisoriesConfigSubscriber | class | Drupal\system\EventSubscriber | core/ | Defines a config subscriber for changes to 'system.advisories'. | 2 | |||
| AdvisoriesTestHttpClient | class | Drupal\advisory_feed_test | core/ | Provides a decorator service for the 'http_client' service for testing. | 1 | 2 | ||
| AdvisoriesUpdatePathTest | class | Drupal\Tests\system\Functional\SecurityAdvisories | core/ | Tests advisories settings update path. | ||||
| AdvisoryTestController | class | Drupal\advisory_feed_test\Controller | core/ | Defines a controller to return JSON for security advisory tests. | ||||
| AfterCommand | class | Drupal\Core\Ajax | core/ | An AJAX command for calling the jQuery after() method. | 2 | |||
| 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 aggregator_feed and aggregator_item base fields' displays. | ||||
| AggregatorFeed | class | Drupal\aggregator\Plugin\migrate\source | core/ | Drupal 6/7 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 6/7 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. | 
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.
