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 |
---|---|---|---|---|---|---|---|---|
FileCommentSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting | vendor/ |
1 | ||||
FileCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Parses and verifies the doc comments for files. | ||||
FileCommentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
FileContent | interface | org\bovigo\vfs\content | vendor/ |
Interface for actual file contents. | 3 | 2 | ||
FilecontentFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
FilecontentFilterIterator filters files by their contents using patterns (regexps or strings). | 1 | |||
FileCookieJar | class | GuzzleHttp\Cookie | vendor/ |
Persists non-session cookies using a JSON formatted file | ||||
FileCopy | class | Drupal\migrate\Plugin\migrate\process | core/ |
Copies or moves a local file from one place into another. | ||||
FileCouldNotBeWrittenException | final class | SebastianBergmann\CodeCoverage | vendor/ |
4 | ||||
FileDescriptor | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
FileDescriptorProto | class | Google\Protobuf\Internal | vendor/ |
Describes a complete .proto file. | ||||
FileDescriptorSet | class | Google\Protobuf\Internal | vendor/ |
The protocol compiler can output a FileDescriptorSet containing the .proto files it parses. | 1 | |||
FileDoesNotExistException | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 8 | |||
FileDoesNotHaveLineException | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
FileDownloadController | class | Drupal\system | core/ |
System file controller. | 2 | 3 | ||
FileDownloader | class | Composer\Downloader | vendor/ |
Base downloader for files | 2 | 1 | ||
FileEncodingConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Defines an encoding constraint for files. | ||||
FileEncodingConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the file encoding constraint. | ||||
FileEncodingSniff | class | Drupal\Sniffs\Files | vendor/ |
\Drupal\Sniffs\Files\FileEncodingSniff. | ||||
FileEventSubscriber | class | Drupal\file\EventSubscriber | core/ |
Sanitizes uploaded filenames. | 2 | |||
FileException | class | Drupal\Core\File\Exception | core/ |
Base class for exceptions related to file handling operations. | 7 | 25 | ||
FileException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an error occurred in the component File. | 11 | 4 | ||
FileExists | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
FileExistsException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a file unexpectedly exists. | 5 | |||
FileExtensionConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File extension constraint. | ||||
FileExtensionConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the file extension constraint. | ||||
FileExtensionEscapingStrategy | class | Twig | vendor/ |
Default autoescaping strategy based on file names. | 1 | |||
FileExtensionFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render a filename as file extension. | ||||
FileExtensionSecureConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File extension secure constraint. | ||||
FileExtensionSecureConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validator for the FileExtensionSecureConstraint. | ||||
FileExtensionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Files | vendor/ |
|||||
FileField | class | Drupal\file\Plugin\migrate\field\d6 | core/ |
MigrateField Plugin for Drupal 6 file fields. | 2 | 2 | ||
FileField | class | Drupal\file\Plugin\migrate\field\d7 | core/ |
MigrateField Plugin for Drupal 7 file fields. | ||||
FileFieldItemList | class | Drupal\file\Plugin\Field\FieldType | core/ |
Represents a configurable entity file field. | 3 | |||
FileFinder | final class | PhpTuf\ComposerStager\Internal\Finder\Service | vendor/ |
@package Finder | 2 | |||
FileFinderInterface | interface | PhpTuf\ComposerStager\API\Finder\Service | vendor/ |
Recursively finds all files "underneath" or "inside" a directory. | 1 | 3 | ||
FileFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for file formatters. | 5 | 1 | ||
FileFormField | class | Symfony\Component\DomCrawler\Field | vendor/ |
FileFormField represents a file form field (an HTML file input tag). | 1 | |||
FileGetContents | class | JsonSchema\Uri\Retrievers | vendor/ |
Tries to retrieve JSON schemas from a URI using file_get_contents() | 1 | |||
FileHeaderSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Files | vendor/ |
|||||
FileHooks | class | Drupal\file\Hook | core/ |
Hook implementations for file. | ||||
FileImageDimensionsConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File extension dimensions constraint. | ||||
FileImageDimensionsConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validator for the FileImageDimensionsConstraint. | ||||
FileinfoMimeTypeGuesser | class | Symfony\Component\Mime | vendor/ |
Guesses the MIME type using the PECL extension FileInfo. | ||||
FileInputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
class | Masterminds\HTML5\Parser | vendor/ |
The FileInputStream loads a file to be parsed. | |||
FileInterface | interface | Drupal\file | core/ |
Defines getter and setter methods for file entity base fields. | 1 | 24 | ||
FileIsImageConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File is image constraint. | ||||
FileIsImageConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validator for the FileIsImageConstraint. | ||||
FileItem | class | Drupal\file\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'file' field type. | 1 | 3 | ||
FileLengthSniff | class | SlevomatCodingStandard\Sniffs\Files | vendor/ |
|||||
FileLinkFormatter | class | Symfony\Component\ErrorHandler\ErrorRenderer | vendor/ |
Formats debug file links. | 4 |