Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
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. | ||||
DateRangeFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
DateRangeFilterIterator filters out files that are not in the given date range (last modified dates). | 1 | |||
DateRangeItem | class | Drupal\datetime_range\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'daterange' field type. | 3 | |||
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 | |||
DateTime | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid "datetime" according to a given format. | ||||
Datetime | class | Drupal\Core\Datetime\Element | core/ |
Provides a datetime element. | ||||
DateTimeComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
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. | ||||
DateTimeException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the PHP DateTime extension encountered an exception/error | 2 | |||
DateTimeFieldItemList | class | Drupal\datetime\Plugin\Field\FieldType | core/ |
Represents a configurable entity datetime field. | 1 | 1 | ||
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 | |||
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 | 4 | ||
DateTimeIso8601 | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
A data type for ISO 8601 date strings. | 1 | |||
DateTimeIso8601Normalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for the DateTimeIso8601 data type to RFC3339. | 2 | |||
DateTimeItem | class | Drupal\datetime\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'datetime' field type. | 1 | 11 | ||
DateTimeItemInterface | interface | Drupal\datetime\Plugin\Field\FieldType | core/ |
Interface definition for Datetime items. | 1 | 12 | ||
DateTimeNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Normalizes an object implementing the {Denormalizes a date string to an instance of { @author Kévin Dunglas <dunglas@gmail.com> | 1 | |||
DateTimeNormalizer | class | Drupal\serialization\Normalizer | core/ |
Converts values for datetime objects to RFC3339 and from common formats. | 2 | |||
DateTimeNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available DateTimeNormalizer options. | ||||
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 | 5 | ||
DateTimeRangeConstantsInterface | interface | Drupal\datetime_range | core/ |
Declares constants used in the datetime range module. | ||||
DatetimeRangeHooks | class | Drupal\datetime_range\Hook | core/ |
Hook implementations for datetime_range. | ||||
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. | ||||
DateTimeTimeAgoFormatter | class | Drupal\datetime\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'Time ago' formatter for 'datetime' fields. | ||||
DateTimeValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> @author Diego Saint Esteben <diego@saintesteben.me> | ||||
DateTimeValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Convert DateTime instances from request attribute variable. | 1 | |||
DatetimeViewsHooks | class | Drupal\datetime\Hook | core/ |
Hook implementations for datetime. | ||||
DateTimeWidgetBase | class | Drupal\datetime\Plugin\Field\FieldWidget | core/ |
Base class for the 'datetime_*' widgets. | 3 | 1 | ||
DateTimeZoneNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Normalizes a { @author Jérôme Desjardins <jewome62@gmail.com> | ||||
DateValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | |||
DayDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a day. | ||||
DayDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a day (DD) | ||||
DbCommandBase | class | Drupal\Core\Command | core/ |
Base command that abstracts handling of database connection arguments. | 2 | |||
DbDumpApplication | class | Drupal\Core\Command | core/ |
Provides a command to dump a database generation script. | 1 | |||
DbDumpCommand | class | Drupal\Core\Command | core/ |
Provides a command to dump the current database to a script. | ||||
DbImportCommand | class | Drupal\Core\Command | core/ |
Provides a command to import the current database from a script. | ||||
DbLog | class | Drupal\dblog\Logger | core/ |
Logs events in the watchdog database table. | 2 |