Classes, traits, and interfaces - 11.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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\Functional | core/ |
Tests Daterange field functionality. | ||||
DateRangeFieldTest | class | Drupal\Tests\datetime_range\FunctionalJavascript | core/ |
Tests Daterange field. | ||||
DateRangeItem | class | Drupal\datetime_range\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'daterange' field type. | 8 | |||
DateRangeItemTest | class | Drupal\Tests\datetime_range\Kernel | core/ |
Test datetime range field type via API. | ||||
DateRangePlainFormatter | class | Drupal\datetime_range\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Plain' formatter for 'daterange' fields. | ||||
DateRangeWidgetBase | class | Drupal\datetime_range\Plugin\Field\FieldWidget | core/ |
Base class for the 'daterange_*' widgets. | 2 | |||
DateSqlInterface | interface | Drupal\views\Plugin\views\query | core/ |
Defines an interface for handling date queries with SQL. | 3 | 1 | ||
DateTest | class | Drupal\Tests\Core\Datetime | core/ |
@coversDefaultClass \Drupal\Core\Datetime\DateFormatter @group Datetime | ||||
DateTestBase | abstract class | Drupal\Tests\datetime\Functional | core/ |
Provides a base class for testing Datetime field functionality. | 3 | 1 | ||
Datetime | class | Drupal\Core\Datetime\Element | core/ |
Provides a datetime element. | ||||
DateTimeComputed | class | Drupal\datetime | core/ |
A computed property for dates of date time field items. | 1 | |||
DateTimeCustomFormatter | class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Custom' formatter for 'datetime' fields. | 1 | 1 | ||
DateTimeDatelistWidget | class | Drupal\datetime\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'datetime_datelist' widget. | ||||
DateTimeDefaultFormatter | class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Default' formatter for 'datetime' fields. | 1 | 1 | ||
DateTimeDefaultWidget | class | Drupal\datetime\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'datetime_default' widget. | ||||
DatetimeElementFormTest | class | Drupal\KernelTests\Core\Datetime | core/ |
Tests DatetimeElement functionality. | ||||
DateTimeFieldItemList | class | Drupal\datetime\Plugin\Field\FieldType | core/ |
Represents a configurable entity datetime field. | 1 | 1 | ||
DateTimeFieldTest | class | Drupal\Tests\datetime\Functional | core/ |
Tests Datetime field functionality. | ||||
DateTimeFormatConstraint | class | Drupal\datetime\Plugin\Validation\Constraint | core/ |
Validation constraint for DateTime items to ensure the format is correct. | ||||
DateTimeFormatConstraintValidator | class | Drupal\datetime\Plugin\Validation\Constraint | core/ |
Constraint validator for DateTime items to ensure the format is correct. | ||||
DateTimeFormatterBase | abstract class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Base class for 'DateTime Field formatter' plugin implementations. | 3 | |||
DateTimeFormInjectionTest | class | Drupal\Tests\datetime\Kernel | core/ |
Tests serializing a form with an injected datetime instance. | ||||
DateTimeHandlerTestBase | abstract class | Drupal\Tests\datetime\Kernel\Views | core/ |
Base class for testing datetime handlers. | 6 | 1 | ||
DatetimeHooks | class | Drupal\datetime\Hook | core/ |
Hook implementations for datetime. | ||||
DateTimeInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for dates, optionally including a time. | 2 | 8 | ||
DateTimeIso8601 | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
A data type for ISO 8601 date strings. | 3 | |||
DateTimeIso8601Normalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for the DateTimeIso8601 data type to RFC3339. | 1 | 2 | ||
DateTimeIso8601NormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Unit test coverage for the "datetime_iso8601" @DataType. | ||||
DateTimeIso8601NormalizerTestDrupalDateTime | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Provides a test class for testing DrupalDateTime. | ||||
DateTimeItem | class | Drupal\datetime\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'datetime' field type. | 1 | 23 | ||
DateTimeItemInterface | interface | Drupal\datetime\Plugin\Field\FieldType | core/ |
Interface definition for Datetime items. | 1 | 19 | ||
DateTimeItemTest | class | Drupal\Tests\datetime\Kernel | core/ |
Tests the new entity API for the date field type. | ||||
DateTimeNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for datetime objects to RFC3339 and from common formats. | 2 | 1 | ||
DateTimeNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Unit test coverage for @DataTypes implementing DateTimeInterface. | ||||
DateTimeNormalizerTestDrupalDateTime | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Provides a test class for testing DrupalDateTime. | ||||
DateTimePlainFormatter | class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Plain' formatter for 'datetime' fields. | 1 | 1 | ||
DateTimePlus | class | Drupal\Component\Datetime | core/ |
Wraps DateTime(). | 1 | 9 | ||
DateTimePlusTest | class | Drupal\Tests\Component\Datetime | core/ |
@coversDefaultClass \Drupal\Component\Datetime\DateTimePlus @group Datetime | ||||
DateTimeRangeConstantsInterface | interface | Drupal\datetime_range | core/ |
Declares constants used in the datetime range module. | 2 | |||
DatetimeRangeHooks | class | Drupal\datetime_range\Hook | core/ |
Hook implementations for datetime_range. | ||||
DatetimeRangeTestHooks | class | Drupal\datetime_range_test\Hook | core/ |
Hook implementations for datetime_range_test. | ||||
DateTimeRangeTrait | trait | Drupal\datetime_range | core/ |
Provides friendly methods for datetime range. | 3 | |||
DatetimeRangeViewsHooks | class | Drupal\datetime_range\Hook | core/ |
Hook implementations for datetime_range. | ||||
DateTimeSchemaTest | class | Drupal\Tests\datetime\Kernel\Views | core/ |
Tests the Drupal\datetime\Plugin\views schemas. | ||||
DateTimeTest | class | Drupal\Tests\system\Functional\System | core/ |
Test date formatting and time zone handling, including daylight saving time. | ||||
DateTimeTimeAgoFormatter | class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Time ago' formatter for 'datetime' fields. | ||||
DateTimeTimeAgoFormatterTest | class | Drupal\Tests\datetime\Functional | core/ |
Tests the functionality of DateTimeTimeAgoFormatter field formatter. | ||||
DatetimeViewsHooks | class | Drupal\datetime\Hook | core/ |
Hook implementations for datetime. |
Pagination
- Previous page
- Page 46
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.