Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
FieldUITest | class | Drupal\Tests\field\Functional\Views | core/ |
Tests the UI of the field handler. | ||||
FieldUiTestTrait | trait | Drupal\Tests\field_ui\Traits | core/ |
Provides common functionality for the Field UI test classes. | 10 | |||
FieldUninstallValidator | class | Drupal\field\ProxyClass | core/ |
Provides a proxy class for \Drupal\field\FieldUninstallValidator. | ||||
FieldUninstallValidator | class | Drupal\field | core/ |
Prevents uninstallation of modules providing active field storage. | 2 | |||
FieldUninstallValidatorTest | class | Drupal\Tests\field\Unit | core/ |
@coversDefaultClass \Drupal\field\FieldUninstallValidator @group field | ||||
FieldUpdateActionBase | abstract class | Drupal\Core\Field | core/ |
Provides a base for action plugins that update one or more fields. | 4 | 4 | ||
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\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 | 2 | ||
File | class | Drupal\file\Entity | core/ |
Defines the file entity class. | 114 | |||
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 | ||
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 @group file | ||||
FileCache | class | Drupal\Component\FileCache | core/ |
Allows to cache data based on file modification dates. | 3 | |||
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. | 21 | |||
FileCacheFactoryTest | class | Drupal\Tests\Component\FileCache | core/ |
@coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory @group FileCache | ||||
FileCacheInterface | interface | Drupal\Component\FileCache | core/ |
Interface for objects that allow caching file data. | 2 | |||
FileCacheTest | class | Drupal\Tests\Component\FileCache | core/ |
@coversDefaultClass \Drupal\Component\FileCache\FileCache @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. | 1 | 2 | ||
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. | ||||
FileEntityNormalizer | class | Drupal\hal\Normalizer | core/ |
Converts the Drupal entity object structure to a HAL array structure. | 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. | 8 | |||
FileExtensionFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render a filename as file extension. | ||||
FileField | class | Drupal\file\Plugin\migrate\field\d6 | core/ |
Plugin annotation @MigrateField( id = "filefield", core = {6}, source_module = "filefield", destination_module = "file" ) | 2 | 3 | ||
FileField | class | Drupal\file\Plugin\migrate\field\d7 | core/ |
Plugin annotation @MigrateField( id = "file", core = {7}, source_module = "file", destination_module = "file" ) | 1 | |||
FileFieldAnonymousSubmissionTest | class | Drupal\Tests\file\Functional | core/ |
Confirm that file field submissions work correctly for anonymous visitors. | ||||
FileFieldAttributesTest | class | Drupal\Tests\rdf\Functional | core/ |
Tests the RDFa markup of filefields. | ||||
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. | ||||
FileFieldFileExtensionsUpdateTest | class | Drupal\Tests\file\Functional\Update | core/ |
Tests file_post_update_add_txt_if_allows_insecure_extensions(). |
Pagination
- Previous page
- Page 70
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.