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 |
---|---|---|---|---|---|---|---|---|
DataProviderExternal | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
DataProviderHelper | class | PHPStan\Rules\PHPUnit | vendor/ |
|||||
DataProviderHelperFactory | class | PHPStan\Rules\PHPUnit | vendor/ |
|||||
DataProviderMethodCalled | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 1 | |||
DataProviderMethodCalledSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
DataProviderMethodFinished | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 1 | |||
DataProviderMethodFinishedSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
DataProviderTestSuite | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
DataReferenceBase | abstract class | Drupal\Core\TypedData | core/ |
Base class for typed data references. | 2 | 2 | ||
DataReferenceDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining references. | 4 | |||
DataReferenceDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 1 | 5 | ||
DataReferenceInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 1 | |||
DataReferenceTargetDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for the entity reference target_id property. | 3 | |||
DataType | class | Drupal\Core\TypedData\Annotation | core/ |
Defines a data type annotation object. | 1 | 1 | ||
DataType | class | Drupal\Core\TypedData\Attribute | core/ |
Defines a data type attribute. | 23 | |||
DataTypeNamespaceSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Checks that data types in param, return, var, and throws tags are fully namespaced. | ||||
DataUriNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Normalizes an {Denormalizes a data URI to a { @author Kévin Dunglas <dunglas@gmail.com> | ||||
Date | class | Drupal\datetime\Plugin\views\argument | core/ |
Abstract argument handler for dates. | 6 | |||
Date | class | Drupal\datetime\Plugin\views\filter | core/ |
Date/time views filter. | ||||
Date | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for dates. | 2 | 2 | ||
Date | class | Drupal\views\Plugin\views\sort | core/ |
Basic sort handler for dates. | 2 | 2 | ||
Date | class | Drupal\Core\Render\Element | core/ |
Provides a form element for date or time selection. | ||||
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 | 1 | ||
Date | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid date, i.e. its string representation follows the Y-m-d format. | ||||
Date | class | Drupal\datetime\Plugin\views\sort | core/ |
Basic sort handler for datetime fields. | ||||
DateCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts DateTimeInterface related classes to array representation. | ||||
DateComparator | class | Symfony\Component\Finder\Comparator | vendor/ |
DateCompare compiles date comparisons. | 2 | |||
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. | ||||
DateFormat | class | Drupal\Core\Datetime\Entity | core/ |
Defines the Date Format configuration entity class. | 7 | |||
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. | 1 | |||
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 | ||
DateFormatListBuilder | class | Drupal\system | core/ |
Defines a class to build a listing of date format entities. | ||||
DateFormatter | class | Drupal\Core\Datetime | core/ |
Provides a service to handle various date related functionality. | ||||
DateFormatterInterface | interface | Drupal\Core\Datetime | core/ |
Provides an interface defining a date formatter. | 1 | 38 | ||
DateHeader | final class | Symfony\Component\Mime\Header | vendor/ |
A Date MIME Header. | ||||
DateHelper | class | Drupal\Core\Datetime | core/ |
Defines Gregorian Calendar date values. | 1 | |||
DateIntervalFilter | Will be removed in 2.0. This filter will no longer be necessary in PHP 7.1+. |
class | DeepCopy\TypeFilter\Date | vendor/ |
@final | 1 | ||
DateIntervalNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Normalizes an instance of {Denormalizes an interval string to an instance of { @author Jérôme Parmentier <jerome@prmntr.me> | 1 | |||
DateIntervalNormalizerContextBuilder | final class | Symfony\Component\Serializer\Context\Normalizer | vendor/ |
A helper providing autocompletion for available DateIntervalNormalizer options. | ||||
Datelist | class | Drupal\Core\Datetime\Element | core/ |
Provides a datelist element. | ||||
DatePeriodFilter | class | DeepCopy\TypeFilter\Date | vendor/ |
@final | 1 | |||
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. |