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 |
---|---|---|---|---|---|---|---|---|
vfsStream | class | org\bovigo\vfs | vendor/ |
Some utility methods for vfsStream. | ||||
vfsStreamAbstractContent | abstract class | org\bovigo\vfs | vendor/ |
Base stream contents container. | 2 | |||
vfsStreamAbstractVisitor | abstract class | org\bovigo\vfs\visitor | vendor/ |
Abstract base class providing an implementation for the visit() method. | 2 | |||
vfsStreamBlock | class | org\bovigo\vfs | vendor/ |
Block container. | 4 | |||
vfsStreamContainer | interface | org\bovigo\vfs | vendor/ |
Interface for stream contents that are able to store other stream contents. | 1 | |||
vfsStreamContainerIterator | class | org\bovigo\vfs | vendor/ |
Iterator for children of a directory container. | ||||
vfsStreamContent | interface | org\bovigo\vfs | vendor/ |
Interface for stream contents. | 1 | 3 | ||
vfsStreamDirectory | class | org\bovigo\vfs | vendor/ |
Directory container. | 1 | 3 | ||
vfsStreamException | class | org\bovigo\vfs | vendor/ |
Exception for vfsStream errors. | ||||
vfsStreamFile | class | org\bovigo\vfs | vendor/ |
File container. | 1 | 3 | ||
vfsStreamPrintVisitor | class | org\bovigo\vfs\visitor | vendor/ |
Visitor which traverses a content structure recursively to print it to an output stream. | ||||
vfsStreamStructureVisitor | class | org\bovigo\vfs\visitor | vendor/ |
Visitor which traverses a content structure recursively to create an array structure from it. | ||||
vfsStreamVisitor | interface | org\bovigo\vfs\visitor | vendor/ |
Interface for a visitor to work on a vfsStream content structure. | 1 | 1 | ||
vfsStreamWrapper | class | org\bovigo\vfs | vendor/ |
Stream wrapper to mock file system requests. | ||||
VgmcpInstaller | class | Composer\Installers | vendor/ |
|||||
Vid | class | Drupal\node\Plugin\views\argument | core/ |
Argument handler to accept a node revision id. | ||||
VideoFile | class | Drupal\media\Plugin\media\Source | core/ |
Media source wrapping around a video file. | ||||
View | class | Drupal\views\Element | core/ |
Provides a render element to display a view. | 1 | |||
View | class | Drupal\views\Plugin\views\area | core/ |
Views area handlers. Insert a view inside of an area. | ||||
View | class | Drupal\views\Entity | core/ |
Defines a View configuration entity class. | 6 | |||
ViewAddForm | class | Drupal\views_ui | core/ |
Form controller for the Views add form. | ||||
ViewAjaxController | class | Drupal\views\Controller | core/ |
Defines a controller to load a view via AJAX. | 1 | |||
ViewAjaxResponse | class | Drupal\views\Ajax | core/ |
Custom JSON response object for an ajax view response. | 1 | |||
ViewDuplicateForm | class | Drupal\views_ui | core/ |
Form controller for the Views duplicate form. | ||||
ViewEditForm | class | Drupal\views_ui | core/ |
Form controller for the Views edit form. | ||||
ViewEntityInterface | interface | Drupal\views | core/ |
Defines an interface for View storage classes. | 2 | 14 | ||
ViewEvent | final class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows to create a response for the return value of a controller. | 7 | |||
ViewExecutable | class | Drupal\views | core/ |
Represents a view as a whole. | 83 | |||
ViewExecutableFactory | class | Drupal\views | core/ |
Defines the cache backend factory. | 4 | 2 | ||
ViewFormBase | abstract class | Drupal\views_ui | core/ |
Base form for Views forms. | 4 | |||
ViewListBuilder | class | Drupal\views_ui | core/ |
Defines a class to build a listing of view entities. | ||||
ViewMode | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 view mode source from database. | ||||
ViewMode | class | Drupal\node\Plugin\migrate\source\d6 | core/ |
Drupal 6 view mode source from database. | ||||
ViewModeAccessCheck | class | Drupal\field_ui\Access | core/ |
Defines an access check for entity view mode routes. | 2 | |||
ViewModeBase | abstract class | Drupal\node\Plugin\migrate\source\d6 | core/ |
A base class for migrations that require view mode info. | 2 | 1 | ||
ViewPageController | class | Drupal\views\Routing | core/ |
Defines a page controller to execute and render a view. | ||||
ViewPreviewForm | class | Drupal\views_ui | core/ |
Form controller for the Views preview form. | ||||
ViewProjection | final class | OpenTelemetry\SDK\Metrics | vendor/ |
3 | ||||
ViewRegistryInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
1 | 1 | |||
ViewRenderElementException | class | Drupal\views\Exception | core/ |
Defines an exception for an invalid View render element. | 1 | |||
Views | class | Drupal\views | core/ |
Static service container wrapper for views. | 41 | |||
ViewsAccess | class | Drupal\views\Annotation | core/ |
Defines a Plugin annotation object for views access plugins. | ||||
ViewsAccess | class | Drupal\views\Attribute | core/ |
Defines a views access plugins type attribute for plugin discovery. | 3 | |||
ViewsArea | class | Drupal\views\Annotation | core/ |
Defines a Plugin annotation object for views area handlers. | ||||
ViewsArea | class | Drupal\views\Attribute | core/ |
Defines a Plugin attribute object for views area handlers. | 12 | |||
ViewsArgument | class | Drupal\views\Annotation | core/ |
Defines a Plugin annotation object for views argument handlers. | ||||
ViewsArgument | class | Drupal\views\Attribute | core/ |
Defines a ViewsArgument attribute for plugin discovery. | 41 | |||
ViewsArgumentDefault | class | Drupal\views\Annotation | core/ |
Defines a Plugin annotation object for views argument default plugins. | ||||
ViewsArgumentDefault | class | Drupal\views\Attribute | core/ |
Defines a ViewsArgument attribute for plugin discovery. | 7 | |||
ViewsArgumentValidator | class | Drupal\views\Annotation | core/ |
Defines a Plugin annotation object for views argument validator plugins. |