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 |
---|---|---|---|---|---|---|---|---|
FileList | class | Composer\ClassMapGenerator | vendor/ |
Contains a list of files which were scanned to generate a classmap | 1 | |||
FileList | class | PHP_CodeSniffer\Files | vendor/ |
1 | ||||
FileLoader | abstract class | Symfony\Component\DependencyInjection\Loader | vendor/ |
FileLoader is the abstract class used by all built-in loaders that are file based. | 6 | 2 | ||
FileLoader | abstract class | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
Base class for all file based loaders. | 2 | |||
FileLoader | abstract class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Base loader for loading validation metadata from a file. | 2 | |||
FileLocator | class | Symfony\Component\HttpKernel\Config | vendor/ |
FileLocator uses the KernelInterface to locate resources in bundles. | 1 | |||
FileMediaFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for media file formatter. | 2 | |||
FileMediaFormatterInterface | interface | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Defines getter methods for FileMediaFormatterBase. | 1 | |||
FilemimeFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render the file MIME type, with an optional icon. | ||||
FilenameFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string). | 1 | |||
FileNameLengthConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File name length constraint. | ||||
FileNameLengthConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the file name length constraint. | ||||
FileNotExistsException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a file is expected to exist but does not. | 1 | |||
FileNotFoundException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when a file was not found. | 2 | |||
FileNotFoundException | class | Symfony\Component\Filesystem\Exception | vendor/ |
Exception class thrown when a file couldn't be found. | 1 | |||
FileOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.FileOptions</code> | ||||
FilepathNamespaceExtractor | class | SlevomatCodingStandard\Sniffs\Files | vendor/ |
|||||
FileProcessBase | abstract class | Drupal\migrate\Plugin\migrate\process | core/ |
Provides functionality for file process plugins. | 2 | |||
FileProcessOutputCallback | final class | Drupal\package_manager | core/ |
Logs process output to a file. | ||||
FileProfilerStorage | class | Symfony\Component\HttpKernel\Profiler | vendor/ |
Storage for profiler using files. | ||||
FileReadOnlyStorage | class | Drupal\Component\PhpStorage | core/ |
Reads code as regular PHP files, but won't write them. | ||||
FileRepository | class | Drupal\file | core/ |
Provides a file entity repository. | 2 | |||
FileRepositoryInterface | interface | Drupal\file | core/ |
Performs file system operations and updates database records accordingly. | 1 | 2 | ||
FileRouteProvider | class | Drupal\file\Entity | core/ |
Provides routes for files. | ||||
FileSecurity | class | Drupal\Composer\Plugin\VendorHardening | composer/ |
Provides file security functions. | ||||
FileSecurity | class | Drupal\Component\FileSecurity | core/ |
Provides file security functions. | 4 | |||
FileSelection | class | Drupal\file\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the file entity type. | ||||
FileServiceProvider | class | Drupal\file | core/ |
Adds 'application/octet-stream' as a known (bin) format. | ||||
FileSize | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter that shows the file byte size in a human-readable way. | ||||
FileSize | class | Drupal\views\Plugin\views\field | core/ |
Render a numeric value as a size. | ||||
FileSizeLimitConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File size max constraint. | ||||
FileSizeLimitConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the FileSizeLimitConstraint. | ||||
FilesLoader | abstract class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Base loader for loading validation metadata from a list of files. | 2 | |||
FileStorage | class | Drupal\Core\Config | core/ |
Defines the file storage. | 1 | 6 | ||
FileStorage | class | Drupal\Component\PhpStorage | core/ |
Stores the code as regular PHP files. | 1 | |||
FileStorage | class | Drupal\file | core/ |
File storage for files. | 1 | |||
FileStorageFactory | class | Drupal\Core\Config | core/ |
Provides a factory for creating config file storage objects. | ||||
FileStorageInterface | interface | Drupal\file | core/ |
Defines an interface for file entity storage classes. | 1 | |||
FileStorageSchema | class | Drupal\file | core/ |
Defines the file schema handler. | 1 | |||
FileSyncer | final class | PhpTuf\ComposerStager\Internal\FileSyncer\Service | vendor/ |
@package FileSyncer | 2 | |||
FileSyncerInterface | interface | PhpTuf\ComposerStager\API\FileSyncer\Service | vendor/ |
Recursively syncs files from one directory to another. | 1 | 3 | ||
FileSystem | class | Drupal\Core\File | core/ |
Provides helpers to operate on files and stream wrappers. | ||||
Filesystem | class | Composer\Util | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Johannes M. Schmitt <schmittjoh@gmail.com> | 49 | |||
FileSystem | class | Drupal\Component\FileSystem | core/ |
Provides file system functions. | 5 | |||
Filesystem | final class | SebastianBergmann\CodeCoverage\Util | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 7 | |||
Filesystem | final class | PhpTuf\ComposerStager\Internal\Filesystem\Service | vendor/ |
@package Filesystem | 2 | |||
Filesystem | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
Filesystem | class | Symfony\Component\Filesystem | vendor/ |
Provides basic utility to manipulate the file system. | 7 | |||
FilesystemCache | class | Twig\Cache | vendor/ |
Implements a cache on the filesystem. | 1 | 1 | ||
FilesystemException | class | Composer\Downloader | vendor/ |
Exception thrown when issues exist on local filesystem | 1 |