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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| SharedEntityTestBundleClassA | class | Drupal\entity_test_bundle_class\Entity | core/ |
A bundle class that shares the same entity type as entity_test. | 2 | |||
| SharedEntityTestBundleClassB | class | Drupal\entity_test_bundle_class\Entity | core/ |
A bundle class that shares the same entity type as entity_test. | 2 | |||
| SharedTempStore | class | Drupal\Core\TempStore | core/ |
Stores and retrieves temporary data for a given owner. | 3 | |||
| SharedTempStoreFactory | class | Drupal\Core\TempStore | core/ |
Creates a shared temporary storage for a collection. | 9 | 2 | ||
| SharedTempStoreTest | class | Drupal\Tests\Core\TempStore | core/ |
Tests Drupal\Core\TempStore\SharedTempStore. | ||||
| Shortcut | class | Drupal\shortcut\Entity | core/ |
Defines the shortcut entity class. | 12 | |||
| Shortcut | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut links source from database. | 1 | |||
| ShortcutAccessControlHandler | class | Drupal\shortcut | core/ |
Defines the access control handler for the shortcut entity type. | 1 | |||
| ShortcutCacheTagsTest | class | Drupal\Tests\shortcut\Kernel | core/ |
Tests the Shortcut entity's cache tags. | ||||
| 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. | 1 | |||
| ShortcutEntityLinksTest | class | Drupal\Tests\shortcut\Kernel | core/ |
Tests the entity_links filter with shortcut entities. | ||||
| ShortcutForm | class | Drupal\shortcut | core/ |
Form handler for the shortcut entity forms. | 1 | |||
| ShortcutHooks | class | Drupal\shortcut\Hook | core/ |
Hook implementations for shortcut. | ||||
| ShortcutInterface | interface | Drupal\shortcut | core/ |
Provides an interface defining a shortcut entity. | 1 | 4 | ||
| ShortcutJsonAnonTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Json Anon. | ||||
| ShortcutJsonBasicAuthTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Json Basic Auth. | ||||
| ShortcutJsonCookieTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Json Cookie. | ||||
| ShortcutLazyBuilder | final class | Drupal\navigation | core/ |
Lazy Builders for Navigation shortcuts links. | ||||
| ShortcutLazyBuilders | class | Drupal\shortcut | core/ |
Lazy builders for the shortcut module. | 1 | 2 | ||
| ShortcutLinksTest | class | Drupal\Tests\shortcut\Functional | core/ |
Create, view, edit, delete, and change shortcut links. | ||||
| ShortcutLinkTarget | class | Drupal\shortcut\Entity | core/ |
Provides a Shortcut link target handler. | ||||
| ShortcutLocalTasksTest | class | Drupal\Tests\shortcut\Unit\Menu | core/ |
Tests existence of shortcut local tasks. | ||||
| ShortcutResourceTestBase | abstract class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Resource test base for Shortcut entity. | 6 | |||
| ShortcutsBlock | class | Drupal\shortcut\Plugin\Block | core/ |
Provides a 'Shortcut' block. | ||||
| ShortcutSet | class | Drupal\shortcut\Entity | core/ |
Defines the Shortcut set configuration entity. | 17 | |||
| ShortcutSet | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut_set source from database. | 1 | |||
| ShortcutSetAccessControlHandler | class | Drupal\shortcut | core/ |
Defines the access control handler for the shortcut set entity type. | 1 | |||
| ShortcutSetController | class | Drupal\shortcut\Controller | core/ |
Builds the page for administering shortcut sets. | ||||
| ShortcutSetDeleteForm | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set deletion form. | 1 | |||
| ShortcutSetForm | class | Drupal\shortcut | core/ |
Form handler for the shortcut set entity edit forms. | 1 | |||
| ShortcutSetInterface | interface | Drupal\shortcut | core/ |
Provides an interface defining a shortcut set entity. | 1 | 7 | ||
| ShortcutSetJsonAnonTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Set Json Anon. | ||||
| ShortcutSetJsonBasicAuthTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Set Json Basic Auth. | ||||
| ShortcutSetJsonCookieTest | class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Tests Shortcut Set Json Cookie. | ||||
| ShortcutSetListBuilder | class | Drupal\shortcut | core/ |
Defines a class to build a listing of shortcut set entities. | 1 | |||
| ShortcutSetResourceTestBase | abstract class | Drupal\Tests\shortcut\Functional\Rest | core/ |
Resource test base for ShortcutSet entity. | 6 | |||
| ShortcutSetsTest | class | Drupal\Tests\shortcut\Functional | core/ |
Create, view, edit, delete, and change shortcut sets. | ||||
| ShortcutSetStorage | class | Drupal\shortcut | core/ |
Defines a storage for shortcut_set entities. | 1 | |||
| ShortcutSetStorageInterface | interface | Drupal\shortcut | core/ |
Defines an interface for shortcut_set entity storage classes. | 1 | 3 | ||
| ShortcutSetTest | class | Drupal\Tests\shortcut\Functional\Jsonapi | core/ |
JSON:API integration test for the "ShortcutSet" config entity type. | ||||
| ShortcutSetTest | class | Drupal\Tests\shortcut\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 ShortcutSet source plugin. | ||||
| ShortcutSetTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "ShortcutSet" config entity type. | ||||
| ShortcutSetUsers | class | Drupal\shortcut\Plugin\migrate\destination | core/ |
Migration destination for shortcut_set_users. | 1 | |||
| ShortcutSetUsers | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut_set_users source from database. | 1 |
Pagination
- Previous page
- Page 178
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.