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 |
|---|---|---|---|---|---|---|---|---|
| NullHelpAndDescriptionTest | class | Drupal\Tests\node\Functional\Update | core/ |
Tests the upgrade path for making content types' help and description NULL. | ||||
| NullIdMap | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the null ID map implementation. | ||||
| NullIncludedData | class | Drupal\jsonapi\JsonApiResource | core/ |
Use when there are no included resources but a Data object is required. | 7 | |||
| NullLockBackend | class | Drupal\Core\Lock | core/ |
Defines a Null lock backend. | 9 | |||
| NullMatcherDumper | class | Drupal\Core\Routing | core/ |
Does not dump Route information. | ||||
| NullNormalizer | class | Drupal\serialization\Normalizer | core/ |
Null normalizer. | 1 | 2 | ||
| NullNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
@coversDefaultClass \Drupal\serialization\Normalizer\NullNormalizer[[api-linebreak]] @group serialization | ||||
| NullPathProcessorManager | class | Drupal\Core\PathProcessor | core/ |
Provides a null implementation of the path processor manager. | ||||
| NullRouteMatch | class | Drupal\Core\Routing | core/ |
Stub implementation of RouteMatchInterface for when there's no matched route. | 1 | |||
| NullStorage | class | Drupal\Core\Config | core/ |
Defines a stub storage. | 5 | |||
| NullStorageExpirable | class | Drupal\Core\KeyValueStore | core/ |
Defines a null key/value store implementation. | ||||
| NullStorageTest | class | Drupal\Tests\Core\Config | core/ |
Tests the NullStorage. | ||||
| NullTestImageEffect | class | Drupal\image_module_test\Plugin\ImageEffect | core/ |
Performs no operation on an image resource. | ||||
| Number | class | Drupal\Component\Utility | core/ |
Provides helper methods for manipulating numbers. | 3 | |||
| Number | class | Drupal\Core\Render\Element | core/ |
Provides a form element for numeric input, with special numeric validation. | 1 | 1 | ||
| NumberField | class | Drupal\field\Plugin\migrate\field\d7 | core/ |
MigrateField plugin for Drupal 7 number fields. | ||||
| NumberFieldTest | class | Drupal\Tests\field\FunctionalJavascript\Number | core/ |
Tests the numeric field widget. | ||||
| NumberFieldTest | class | Drupal\Tests\field\Functional\Number | core/ |
Tests the creation of numeric fields. | ||||
| NumberItemTest | class | Drupal\Tests\field\Kernel\Number | core/ |
Tests the new entity API for the number field type. | ||||
| NumberListField | class | Drupal\options\Plugin\views\argument | core/ |
Argument handler for list field to show human readable name in the summary. | ||||
| NumberTest | class | Drupal\Tests\Component\Utility | core/ |
Tests number manipulation utilities. | ||||
| NumberWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'number' widget. | ||||
| NumericArgument | class | Drupal\views\Plugin\views\argument | core/ |
Basic argument handler for arguments that are numeric. | 4 | 2 | ||
| NumericArgumentValidator | class | Drupal\views\Plugin\views\argument_validator | core/ |
Validate whether an argument is numeric or not. | ||||
| NumericField | class | Drupal\views\Plugin\views\field | core/ |
Render a field as a numeric value. | 3 | 4 | ||
| NumericFilter | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle greater than/less than filters. | 2 | 2 | ||
| NumericFilterTest | class | Drupal\Tests\views\Unit\Plugin\views\filter | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\filter\NumericFilter[[api-linebreak]] @group Views | ||||
| NumericFormatPluralTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the creation of numeric fields. | ||||
| NumericFormatterBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Parent plugin for decimal and integer formatters. | 2 | |||
| NumericItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for numeric configurable field types. | 3 | 1 | ||
| NumericUnformattedFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'number_unformatted' formatter. | 1 | 1 | ||
| ObjectAwareSerializationInterface | interface | Drupal\Component\Serialization | core/ |
Ensures that a serializer is usable for serializing PHP objects. | 1 | 2 | ||
| ObjectDefinition | class | Drupal\Tests\Core\Plugin | core/ |
|||||
| ObjectDefinition | class | Drupal\Tests\Component\Annotation\Plugin\Discovery | core/ |
|||||
| ObjectDefinition | class | Drupal\Tests\Component\Plugin\Discovery | core/ |
|||||
| ObjectSerialization | class | Drupal\Core\Test | core/ |
Object to test that security issues around serialization. | ||||
| ObjectWithPluginCollectionInterface | interface | Drupal\Core\Plugin | core/ |
Provides an interface for an object using a plugin collection. | 1 | 1 | ||
| ObjWithString | class | Drupal\Tests\migrate\Unit\process | core/ |
Test class with a __toString() method. | ||||
| ObsoleteExtensionException | class | Drupal\Core\Extension\Exception | core/ |
Exception thrown when the extension is obsolete on install. | 2 | |||
| OEmbed | class | Drupal\media\Plugin\media\Source | core/ |
Provides a media source plugin for oEmbed resources. | 1 | |||
| OEmbedDeriver | class | Drupal\media\Plugin\media\Source | core/ |
Derives media source plugin definitions for supported oEmbed providers. | ||||
| OEmbedFieldWidgetTest | class | Drupal\Tests\media\Functional\FieldWidget | core/ |
@covers \Drupal\media\Plugin\Field\FieldWidget\OEmbedWidget[[api-linebreak]] | ||||
| OEmbedForm | class | Drupal\media_library\Form | core/ |
Creates a form to create media entities from oEmbed URLs. | 2 | |||
| OEmbedFormatter | class | Drupal\media\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'oembed' formatter. | ||||
| OEmbedFormatterTest | class | Drupal\Tests\media\Functional\FieldFormatter | core/ |
@covers \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter[[api-linebreak]] | ||||
| OEmbedIframeController | class | Drupal\media\Controller | core/ |
Controller which renders an oEmbed resource in a bare page (without blocks). | 1 | |||
| OEmbedIframeControllerTest | class | Drupal\Tests\media\Kernel | core/ |
@coversDefaultClass \Drupal\media\Controller\OEmbedIframeController[[api-linebreak]] | ||||
| OEmbedInterface | interface | Drupal\media\Plugin\media\Source | core/ |
Defines additional functionality for source plugins that use oEmbed. | 1 | 6 | ||
| OEmbedMediaSource | class | Drupal\media\Attribute | core/ |
Defines a OEmbedMediaSource attribute. | 1 | |||
| OEmbedResourceConstraint | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Checks if a value represents a valid oEmbed resource URL. | 1 |
Pagination
- Previous page
- Page 131
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.