Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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 | 3 | ||
| NumericArgumentTitleTest | class | Drupal\Tests\views\Unit\Plugin\argument | core/ |
Tests the title() method of NumericArgument. | ||||
| 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. | 1 | 2 | ||
| 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/ |
Tests Drupal\views\Plugin\views\filter\NumericFilter. | ||||
| 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 | ||
| NyanCatThemeEngine | class | Drupal\nyan_cat | core/ |
NYAN NYAN NYAN! | 2 | |||
| 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/ |
Stub class for plugin definition. | ||||
| 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/ |
Tests OEmbed Field Widget. | ||||
| 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. | 1 | |||
| OEmbedFormatterTest | class | Drupal\Tests\media\Functional\FieldFormatter | core/ |
Tests OEmbed Formatter. | ||||
| 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/ |
Tests Drupal\media\Controller\OEmbedIframeController. | ||||
| OEmbedInterface | interface | Drupal\media\Plugin\media\Source | core/ |
Defines additional functionality for source plugins that use oEmbed. | 1 | 5 | ||
| 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 | |||
| OEmbedResourceConstraintValidator | class | Drupal\media\Plugin\Validation\Constraint | core/ |
Validates oEmbed resource URLs. | 1 | |||
| OEmbedResourceConstraintValidatorTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Plugin\Validation\Constraint\OEmbedResourceConstraintValidator. | ||||
| OEmbedSourceTest | class | Drupal\Tests\media\Kernel | core/ |
Tests Drupal\media\Plugin\media\Source\OEmbed. | ||||
| OEmbedTestTrait | trait | Drupal\Tests\media\Traits | core/ |
Contains helper functions for testing oEmbed functionality in isolation. | 6 | |||
| OEmbedWidget | class | Drupal\media\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'oembed_textfield' widget. | 1 | |||
| OffCanvasDialogTest | class | Drupal\Tests\system\Functional\Ajax | core/ |
Performs tests on opening and manipulating dialogs via AJAX commands. | ||||
| OffCanvasRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for off-canvas dialog requests. | 3 | |||
| OffCanvasTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests the off-canvas dialog functionality. |
Pagination
- Previous page
- Page 144
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.