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 |
|---|---|---|---|---|---|---|---|---|
| Date | class | Drupal\Core\Render\Element | core/ |
Provides a form element for date or time selection. | ||||
| Date | class | Drupal\views\Plugin\views\sort | core/ |
Basic sort handler for dates. | 2 | 2 | ||
| Date | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for dates. | 2 | 2 | ||
| Date | class | Drupal\views\Plugin\views\filter | core/ |
Filter to handle dates stored as a timestamp. | 2 | 2 | ||
| Date | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for dates. | 7 | 3 | ||
| Date | class | Drupal\views\Plugin\views\argument_default | core/ |
The current date argument default handler. | ||||
| Date | class | Drupal\datetime\Plugin\views\sort | core/ |
Basic sort handler for datetime fields. | ||||
| Date | class | Drupal\datetime\Plugin\views\filter | core/ |
Date/time views filter. | ||||
| Date | class | Drupal\datetime\Plugin\views\argument | core/ |
Abstract argument handler for dates. | 6 | |||
| DateArgumentDefaultTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests pluggable argument_default for views. | ||||
| DateElementBase | abstract class | Drupal\Core\Datetime\Element | core/ |
Provides a base class for date elements. | 2 | |||
| DateField | class | Drupal\datetime\Plugin\migrate\field | core/ |
Provides a field plugin for date and time fields. | 1 | |||
| DateFieldTest | class | Drupal\Tests\datetime\Unit\Plugin\migrate\field | core/ |
Provides unit tests for the DateField Plugin. | ||||
| DateFilterTest | class | Drupal\Tests\datetime\Functional | core/ |
Test exposed datetime filters functionality. | ||||
| DateFormat | class | Drupal\Core\Datetime\Entity | core/ |
Defines the Date Format configuration entity class. | 23 | |||
| DateFormat | class | Drupal\config_translation\FormElement | core/ |
Defines the date format element for the configuration translation interface. | ||||
| DateFormatAccessControlHandler | class | Drupal\system | core/ |
Defines the access control handler for the date format entity type. | 2 | |||
| DateFormatAccessControlHandlerTest | class | Drupal\Tests\system\Kernel | core/ |
Tests Drupal\system\DateFormatAccessControlHandler. | ||||
| DateFormatAddForm | class | Drupal\system\Form | core/ |
Provides a form for adding a date format. | ||||
| DateFormatDeleteForm | class | Drupal\system\Form | core/ |
Builds a form to delete a date format. | ||||
| DateFormatEditForm | class | Drupal\system\Form | core/ |
Provides a form for editing a date format. | ||||
| DateFormatFormBase | abstract class | Drupal\system\Form | core/ |
Provides a base form for date formats. | 2 | |||
| DateFormatInterface | interface | Drupal\Core\Datetime | core/ |
Provides an interface defining a date format. | 1 | 2 | ||
| DateFormatJsonAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Json Anon. | ||||
| DateFormatJsonBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Json Basic Auth. | ||||
| DateFormatJsonCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Json Cookie. | ||||
| DateFormatListBuilder | class | Drupal\system | core/ |
Defines a class to build a listing of date format entities. | ||||
| DateFormatResourceTestBase | abstract class | Drupal\FunctionalTests\Rest | core/ |
ResourceTestBase for DateFormat entity. | 6 | |||
| DateFormatsLockedTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the locked functionality of date formats. | ||||
| DateFormatsMachineNameTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests validity of date format machine names. | ||||
| DateFormatter | class | Drupal\Core\Datetime | core/ |
Provides a service to handle various date related functionality. | 2 | 2 | ||
| DateFormatterInterface | interface | Drupal\Core\Datetime | core/ |
Provides an interface defining a date formatter. | 1 | 47 | ||
| DateFormatterTest | class | Drupal\KernelTests\Core\Datetime | core/ |
Tests date formatting. | ||||
| DateFormatTest | class | Drupal\Tests\system\FunctionalJavascript\System | core/ |
Tests that date formats UI with JavaScript enabled. | ||||
| DateFormatTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "DateFormat" config entity type. | ||||
| DateFormatValidationTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation of date_format entities. | ||||
| DateFormatXmlAnonTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Xml Anon. | ||||
| DateFormatXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Xml Basic Auth. | ||||
| DateFormatXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
Tests Date Format Xml Cookie. | ||||
| DateHelper | class | Drupal\Core\Datetime | core/ |
Defines Gregorian Calendar date values. | 2 | |||
| DateHelperTest | class | Drupal\Tests\Core\Datetime | core/ |
Tests Drupal\Core\Datetime\DateHelper. | ||||
| Datelist | class | Drupal\Core\Datetime\Element | core/ |
Provides a datelist element. | ||||
| DatelistElementFormTest | class | Drupal\KernelTests\Core\Datetime | core/ |
Tests Datelist functionality. | ||||
| DatePreprocess | class | Drupal\Core\Datetime | core/ |
Preprocess for common/core theme templates. | 1 | 2 | ||
| DateRangeCustomFormatter | class | Drupal\datetime_range\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Custom' formatter for 'daterange' fields. | ||||
| DateRangeDatelistWidget | class | Drupal\datetime_range\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'daterange_datelist' widget. | ||||
| DateRangeDefaultFormatter | class | Drupal\datetime_range\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Default' formatter for 'daterange' fields. | ||||
| DateRangeDefaultWidget | class | Drupal\datetime_range\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'daterange_default' widget. | ||||
| DateRangeFieldItemList | class | Drupal\datetime_range\Plugin\Field\FieldType | core/ |
Represents a configurable entity daterange field. | ||||
| DateRangeFieldTest | class | Drupal\Tests\datetime_range\FunctionalJavascript | core/ |
Tests Daterange field. |
Pagination
- Previous page
- Page 47
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.