Classes, traits, and interfaces - 10.3.x - 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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
FieldUrlTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Url handler. | ||||
FieldValidationTest | class | Drupal\Tests\field\Kernel | core/ |
Tests field validation. | ||||
FieldWebTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests fields from within a UI. | ||||
FieldWidget | class | Drupal\Core\Field\Attribute | core/ |
Defines a FieldWidget attribute for plugin discovery. | 38 | |||
FieldWidget | class | Drupal\Core\Field\Annotation | core/ |
Defines a FieldWidget annotation object. | ||||
FieldWidgetConstraint | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Supports validating widget constraints. | ||||
FieldWidgetConstraintValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates the FieldWidgetConstraint constraint. | ||||
FieldWidgetConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation constraints for FieldWidgetConstraintValidatorTest. | ||||
File | class | Drupal\Core\Render\Element | core/ |
Provides a form element for uploading a file. | ||||
File | class | Drupal\media\Plugin\media\Source | core/ |
File entity media source. | 3 | 4 | ||
File | class | Drupal\file\Entity | core/ |
Defines the file entity class. | 115 | |||
File | class | Drupal\file\Plugin\views\field | core/ |
Field handler to provide simple renderer that allows linking to a file. | ||||
File | class | Drupal\file\Plugin\views\wizard | core/ |
Tests creating managed files views with the wizard. | ||||
File | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 file source from database. | ||||
File | class | Drupal\file\Plugin\migrate\source\d7 | core/ |
Drupal 7 file source from database. | 1 | 1 | ||
FileAccessControlHandler | class | Drupal\file | core/ |
Provides a File access control handler. | 1 | 1 | ||
FileAccessFormatterControlHandlerInterface | interface | Drupal\file | core/ |
Defines an interface for file access handlers that need to run on file formatters. | 1 | 1 | ||
FileAddPermissionsUpdateTest | class | Drupal\Tests\file\Functional | core/ |
Tests file_post_update_add_permissions_to_roles(). | ||||
FileAudioFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_audio' formatter. | ||||
FileAudioFormatterTest | class | Drupal\Tests\file\Functional\Formatter | core/ |
@coversDefaultClass \Drupal\file\Plugin\Field\FieldFormatter\FileAudioFormatter[[api-linebreak]] @group file @group #slow | ||||
FileCache | class | Drupal\Component\FileCache | core/ |
Allows to cache data based on file modification dates. | 1 | 4 | ||
FileCacheBackendInterface | interface | Drupal\Component\FileCache | core/ |
Defines an interface inspired by APCu for FileCache backends. | 2 | 1 | ||
FileCacheFactory | class | Drupal\Component\FileCache | core/ |
Creates a FileCache object. | 27 | |||
FileCacheFactoryTest | class | Drupal\Tests\Component\FileCache | core/ |
@coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory[[api-linebreak]] @group FileCache | ||||
FileCacheInterface | interface | Drupal\Component\FileCache | core/ |
Interface for objects that allow caching file data. | 2 | 3 | ||
FileCacheTest | class | Drupal\Tests\Component\FileCache | core/ |
@coversDefaultClass \Drupal\Component\FileCache\FileCache[[api-linebreak]] @group FileCache | ||||
FileCopy | class | Drupal\migrate\Plugin\migrate\process | core/ |
Copies or moves a local file from one place into another. | 1 | 2 | ||
FileCopyTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the file copy process plugin. | ||||
FileCopyTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests the file_copy process plugin. | ||||
FileCopyTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file copy function. | 1 | |||
FileDeleteRecursiveTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete recursive function. | 1 | |||
FileDeleteTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete function. | 1 | |||
FileDownloadController | class | Drupal\system | core/ |
System file controller. | 2 | 3 | ||
FileElementTest | class | Drupal\Tests\system\Kernel\Form | core/ |
Tests for the 'file' form element. | ||||
FileEntityFormatterTest | class | Drupal\Tests\file\Kernel\Formatter | core/ |
Tests the default file formatter. | ||||
FileEventSubscriber | class | Drupal\file\EventSubscriber | core/ |
Sanitizes uploaded filenames. | 1 | 2 | ||
FileException | class | Drupal\Core\File\Exception | core/ |
Base class for exceptions related to file handling operations. | 7 | 30 | ||
FileExistsException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a file unexpectedly exists. | 10 | |||
FileExtensionConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File extension constraint. | ||||
FileExtensionConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the file extension constraint. | ||||
FileExtensionConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Plugin\Validation\Constraint | core/ |
Tests the FileExtensionConstraintValidator. | ||||
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. | ||||
FileExtensionSecureConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Plugin\Validation\Constraint | core/ |
Tests the FileExtensionSecureConstraintValidator. | ||||
FileField | class | Drupal\file\Plugin\migrate\field\d6 | core/ |
MigrateField Plugin for Drupal 6 file fields. | 2 | 3 | ||
FileField | class | Drupal\file\Plugin\migrate\field\d7 | core/ |
MigrateField Plugin for Drupal 7 file fields. | 1 | |||
FileFieldAnonymousSubmissionTest | class | Drupal\Tests\file\Functional | core/ |
Confirm that file field submissions work correctly for anonymous visitors. | ||||
FileFieldCreationTrait | trait | Drupal\Tests\file\Functional | core/ |
Provides methods for creating file fields. | 6 | |||
FileFieldDisplayTest | class | Drupal\Tests\file\Functional | core/ |
Tests the display of file fields in node and views. |
Pagination
- Previous page
- Page 73
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.