Classes, traits, and interfaces - 10.3.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 |
---|---|---|---|---|---|---|---|---|
DateFormatXmlBasicAuthTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
DateFormatXmlCookieTest | class | Drupal\FunctionalTests\Rest | core/ |
@group rest | ||||
DateHelper | class | Drupal\Core\Datetime | core/ |
Defines Gregorian Calendar date values. | 2 | |||
DateHelperTest | class | Drupal\Tests\Core\Datetime | core/ |
@coversDefaultClass \Drupal\Core\Datetime\DateHelper @group Datetime | ||||
Datelist | class | Drupal\Core\Datetime\Element | core/ |
Provides a datelist element. | ||||
DatelistElementFormTest | class | Drupal\KernelTests\Core\Datetime | core/ |
Tests Datelist functionality. | ||||
DateRangeCustomFormatter | class | Drupal\datetime_range\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Custom' formatter for 'daterange' fields. | 2 | |||
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. | 2 | |||
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. | ||||
DateRangeFormatterSettingsUpdateTest | class | Drupal\Tests\datetime_range\Functional | core/ |
Tests the update path for daterange formatter settings. | ||||
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. | 2 | |||
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 | ||
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. | 3 |
Pagination
- Previous page
- Page 44
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.