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 |
|---|---|---|---|---|---|---|---|---|
| SetterInjection | class | Drupal\new_dependency_test | core/ |
Generic service which uses setter injection. | 2 | |||
| Settings | final class | Drupal\Core\Site | core/ |
Read only settings that are initialized with the class. | 124 | 2 | ||
| SettingsAnnotation | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| SettingsCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for adjusting Drupal's JavaScript settings. | 3 | |||
| SettingsForm | class | Drupal\media_library\Form | core/ |
Defines a form for configuring the Media Library module. | 1 | |||
| SettingsForm | class | Drupal\aggregator\Form | core/ |
Configures aggregator settings for this site. | 1 | 1 | ||
| SettingsFormTest | class | Drupal\Tests\media_library\Functional | core/ |
Tests the Media Library settings form. | ||||
| SettingsRewriteTest | class | Drupal\KernelTests\Core\Site | core/ |
Tests the drupal_rewrite_settings() function. | ||||
| SettingsTest | class | Drupal\Tests\Core\Site | core/ |
@coversDefaultClass \Drupal\Core\Site\Settings[[api-linebreak]] @runTestsInSeparateProcesses @group Site | ||||
| SettingsTest | class | Drupal\Tests\migrate_drupal_ui\FunctionalJavascript | core/ |
Tests migrate upgrade credential form with settings in settings.php. | ||||
| SettingsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests all ui related settings under admin/structure/views/settings. | ||||
| SettingsTrayBlockFormTest | class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Testing opening and saving block forms in the off-canvas dialog. | ||||
| SettingsTrayFormAnnotationIsClassBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that explicitly provides a "settings_tray" form class. | 1 | |||
| SettingsTrayFormAnnotationIsClassBlockForm | class | Drupal\settings_tray_test\Form | core/ |
|||||
| SettingsTrayFormAnnotationIsFalseBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that explicitly provides no "settings_tray" form, thus opting out. | ||||
| SettingsTrayFormAnnotationNoneBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that does nothing explicit for Settings Tray. | 1 | |||
| SettingsTrayIntegrationTest | class | Drupal\Tests\quickedit\FunctionalJavascript | core/ |
Test Settings Tray and Quick Edit modules integration. | ||||
| SettingsTrayTest | class | Drupal\Tests\settings_tray\Functional | core/ |
Tests opening and saving block forms in the off-canvas dialog. | ||||
| SettingsTrayTestBase | class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Base class for Settings Tray tests. | 4 | 1 | ||
| SettingSummariesContentTypeTest | class | Drupal\Tests\node\FunctionalJavascript | core/ |
Tests the JavaScript updating of summaries on content type form. | ||||
| SevenLayoutBuilderTest | class | Drupal\Tests\seven\Functional | core/ |
Tests the Seven theme. | ||||
| ShapeItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'shape' field type. | 1 | |||
| ShapeItemRequired | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'shape_required' field type. | ||||
| ShapeItemTest | class | Drupal\Tests\field\Kernel | core/ |
Tests the new entity API for the shape field type. | ||||
| ShapeOnlyColorEditableWidget | class | Drupal\entity_test\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'shape_only_color_editable_widget' widget. | ||||
| SharedTempStore | class | Drupal\Core\TempStore | core/ |
Stores and retrieves temporary data for a given owner. | 2 | |||
| SharedTempStoreFactory | class | Drupal\Core\TempStore | core/ |
Creates a shared temporary storage for a collection. | 8 | 2 | ||
| SharedTempStoreTest | class | Drupal\Tests\Core\TempStore | core/ |
@coversDefaultClass \Drupal\Core\TempStore\SharedTempStore[[api-linebreak]] @group TempStore | ||||
| Shortcut | class | Drupal\shortcut\Entity | core/ |
Defines the shortcut entity class. | 9 | |||
| Shortcut | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut links source from database. | ||||
| ShortcutAccessControlHandler | class | Drupal\shortcut | core/ |
Defines the access control handler for the shortcut entity type. | ||||
| ShortcutCacheTagsTest | class | Drupal\Tests\shortcut\Functional | core/ |
Tests the Shortcut entity's cache tags. | ||||
| ShortcutClaroIntegrationTest | class | Drupal\Tests\shortcut\Kernel | core/ |
Tests shortcut_install() and shortcut_uninstall(). | ||||
| ShortcutController | class | Drupal\shortcut\Controller | core/ |
Provides route responses for taxonomy.module. | ||||
| ShortcutDeleteForm | class | Drupal\shortcut\Form | core/ |
Builds the shortcut link deletion form. | ||||
| ShortcutForm | class | Drupal\shortcut | core/ |
Form handler for the shortcut entity forms. | ||||
| ShortcutHalJsonAnonTest | class | Drupal\Tests\hal\Functional\shortcut | core/ |
@group hal @group legacy | 2 | |||
| ShortcutHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\shortcut | core/ |
@group hal @group legacy | ||||
| ShortcutHalJsonCookieTest | class | Drupal\Tests\hal\Functional\shortcut | core/ |
@group hal @group legacy | ||||
| ShortcutInterface | interface | Drupal\shortcut | core/ |
Provides an interface defining a shortcut entity. | 1 | 3 | ||
| ShortcutJsonAnonTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
@group rest | ||||
| ShortcutJsonBasicAuthTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
@group rest | ||||
| ShortcutJsonCookieTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
@group rest | ||||
| ShortcutLazyBuilders | class | Drupal\shortcut | core/ |
Lazy builders for the shortcut module. | 2 | |||
| ShortcutLinksTest | class | Drupal\Tests\shortcut\Functional | core/ |
Create, view, edit, delete, and change shortcut links. | ||||
| ShortcutLocalTasksTest | class | Drupal\Tests\shortcut\Unit\Menu | core/ |
Tests existence of shortcut local tasks. | ||||
| ShortcutResourceTestBase | abstract class | Drupal\Tests\shortcut\Functional\Rest | core/ |
ResourceTestBase for Shortcut entity. | 7 | 1 | ||
| ShortcutsBlock | class | Drupal\shortcut\Plugin\Block | core/ |
Provides a 'Shortcut' block. | ||||
| ShortcutSet | class | Drupal\shortcut\Entity | core/ |
Defines the Shortcut set configuration entity. | 11 | |||
| ShortcutSet | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut_set source from database. |
Pagination
- Previous page
- Page 151
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.