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 |
---|---|---|---|---|---|---|---|---|
FileSystemForm | class | Drupal\system\Form | core/ |
Configure file system settings for this site. | 1 | |||
FileSystemInterface | interface | Drupal\Core\File | core/ |
Provides an interface for helpers that operate on files and stream wrappers. | 1 | 51 | ||
FilesystemInterface | interface | PhpTuf\ComposerStager\API\Filesystem\Service | vendor/ |
Provides basic utilities for interacting with the file system. | 1 | 10 | ||
FilesystemLoader | class | Twig\Loader | vendor/ |
Loads template from the filesystem. | 3 | 3 | ||
FilesystemLoader | class | Drupal\Core\Template\Loader | core/ |
Loads templates from the filesystem. | ||||
FilesystemRepository | class | Composer\Repository | vendor/ |
Filesystem repository. | 1 | 2 | ||
FileTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
FileTransfer | abstract class | Drupal\Core\FileTransfer | core/ |
Defines the base FileTransfer class. | 3 | 1 | ||
FileTransferAuthorizeForm | class | Drupal\Core\FileTransfer\Form | core/ |
Provides the file transfer authorization form. | ||||
FileTransferException | class | Drupal\Core\FileTransfer | core/ |
Exception thrown for file transfer errors. | 1 | |||
FileTranslation | class | Drupal\Core\StringTranslation\Translator | core/ |
File based string translation. | 1 | |||
FileTypeFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
FileTypeFilterIterator only keeps files, directories, or both. | ||||
FileUnit | final class | SebastianBergmann\CodeUnit | vendor/ |
@psalm-immutable | ||||
FileUpload | class | Drupal\jsonapi\Controller | core/ |
Handles file upload requests. | 2 | |||
FileUploadForm | class | Drupal\media_library\Form | core/ |
Creates a form to create media entities from uploaded files. | 1 | |||
FileUploadHandler | class | Drupal\file\Upload | core/ |
Handles validating and creating file entities from file uploads. | 3 | 2 | ||
FileUploadLocationTrait | trait | Drupal\file\Upload | core/ |
Resolves the file upload location from a file field definition. | 2 | |||
FileUploadResource | class | Drupal\file\Plugin\rest\resource | core/ |
File upload resource. | ||||
FileUploadResult | class | Drupal\file\Upload | core/ |
Value object for a file upload result. | 1 | |||
FileUploadSanitizeNameEvent | class | Drupal\Core\File\Event | core/ |
An event during file upload that lets subscribers sanitize the filename. | 3 | |||
FileUri | class | Drupal\file\Plugin\migrate\process\d6 | core/ |
Process the file URL into a D8 compatible URL. | ||||
FileUriFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render the file URI to its download path. | ||||
FileUriItem | class | Drupal\file\Plugin\Field\FieldType | core/ |
File-specific plugin implementation of a URI item to provide a full URL. | ||||
FileUriUnique | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Supports validating file URIs. | ||||
FileUrlGenerator | class | Drupal\Core\File | core/ |
Default implementation for the file URL generator service. | ||||
FileUrlGeneratorInterface | interface | Drupal\Core\File | core/ |
Generates file URLs for a stream to an external or local file. | 1 | 12 | ||
FileUsageBase | abstract class | Drupal\file\FileUsage | core/ |
Defines the base class for database file usage backend. | 1 | |||
FileUsageInterface | interface | Drupal\file\FileUsage | core/ |
File usage backend interface. | 1 | 2 | ||
FileValidationConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validation File constraint. | ||||
FileValidationConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Checks that a file referenced in a file field is valid. | ||||
FileValidationEvent | class | Drupal\file\Validation | core/ |
Event for file validations. | ||||
FileValidationException | class | Drupal\file\Upload | core/ |
Provides an exception for upload validation errors. | ||||
FileValidator | class | Drupal\file\Validation | core/ |
Provides a class for file validation. | 2 | |||
FileValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | |||
FileValidatorInterface | interface | Drupal\file\Validation | core/ |
Provides a file validator that supports a list of validations. | 1 | 3 | ||
FileValidatorSettingsTrait | trait | Drupal\file\Validation | core/ |
Provides a trait to create validators from settings. | 3 | |||
FileVideoFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_video' formatter. | ||||
FileViewsData | class | Drupal\file | core/ |
Provides views data for the file entity type. | 1 | |||
FileViewsHooks | class | Drupal\file\Hook | core/ |
Hook implementations for file. | ||||
FileWidget | class | Drupal\file\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'file_generic' widget. | 1 | 1 | ||
FileWidgetAjaxController | class | Drupal\file\Controller | core/ |
Defines a controller to respond to file widget AJAX requests. | ||||
FileWriteException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when file cannot be written to disk. | 4 | |||
Filter | class | Drupal\jsonapi\Query | core/ |
Gathers information about the filter parameter. | 2 | |||
Filter | class | Drupal\filter\Attribute | core/ |
Defines a filter attribute for plugin discovery. | 13 | |||
Filter | final class | SebastianBergmann\CodeCoverage | vendor/ |
6 | ||||
Filter | class | Drupal\filter\Annotation | core/ |
Defines a filter annotation object. | ||||
Filter | class | PHP_CodeSniffer\Filters | vendor/ |
1 | ||||
Filter | interface | DeepCopy\Filter | vendor/ |
Filter to apply to a property while copying an object | 7 | 4 | ||
Filter | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
FilterAlign | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to align elements. |