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 |
---|---|---|---|---|---|---|---|---|
FormField | abstract class | Symfony\Component\DomCrawler\Field | vendor/ |
FormField is the abstract class for all form fields. | 4 | 3 | ||
FormFieldRegistry | class | Symfony\Component\DomCrawler | vendor/ |
This is an internal class that must not be used directly. | ||||
FormHelper | class | Drupal\Core\Form | core/ |
Provides helpers to operate on forms. | 5 | |||
FormInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for a Form. | 9 | 8 | ||
FormModeAccessCheck | class | Drupal\field_ui\Access | core/ |
Defines an access check for entity form mode routes. | 2 | |||
FormOperations | class | Drupal\workspaces | core/ |
Defines a class for reacting to form operations. | 1 | |||
FormRouteEnhancer | class | Drupal\Core\Routing\Enhancer | core/ |
Enhancer to add a wrapping controller for _form routes. | ||||
FormSizeFileException | class | Symfony\Component\HttpFoundation\File\Exception | vendor/ |
Thrown when an UPLOAD_ERR_FORM_SIZE error occurred with UploadedFile. | 1 | |||
FormState | class | Drupal\Core\Form | core/ |
Stores information about the state of a form. | 9 | |||
FormStateDecoratorBase | abstract class | Drupal\Core\Form | core/ |
Decorates another form state. | 1 | |||
FormStateInputSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Throws a message whenever $form_state['input'] is used. $form_state['values'] is preferred. | ||||
FormStateInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for an object containing the current state of a form. | 3 | 675 | ||
FormStateValuesTrait | trait | Drupal\Core\Form | core/ |
Provides methods to manage form state values. | ||||
FormSubmitter | class | Drupal\Core\Form | core/ |
Provides submission processing for forms. | ||||
FormSubmitterInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for processing form submissions. | 2 | |||
Formula | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for simple formulae. | 1 | |||
FormUploadedFile | class | Drupal\file\Upload | core/ |
Provides a bridge to Symfony UploadedFile. | 2 | |||
FormValidator | class | Drupal\Core\Form | core/ |
Provides validation of form submissions. | ||||
FormValidatorInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for validating form submissions. | 2 | |||
ForNode | class | Twig\Node | vendor/ |
Represents a for node. | 2 | |||
ForOfStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents the "for...of" statement. For example: for (var a of b) {} | ||||
ForStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents a for statement. | ||||
ForTokenParser | final class | Twig\TokenParser | vendor/ |
Loops over each item of a sequence. | 1 | |||
For_ | class | PhpParser\Node\Stmt | vendor/ |
1 | ||||
FossilDownloader | class | Composer\Downloader | vendor/ |
@author BohwaZ <http://bohwaz.net/> | ||||
FossilDriver | class | Composer\Repository\Vcs | vendor/ |
@author BohwaZ <http://bohwaz.net/> | ||||
Fqsen | final class | phpDocumentor\Reflection\DocBlock\Tags\Reference | vendor/ |
Fqsen reference used by { | 1 | |||
Fqsen | final class | phpDocumentor\Reflection | vendor/ |
Value Object for Fqsen. | 8 | |||
FqsenResolver | class | phpDocumentor\Reflection | vendor/ |
Resolver for Fqsen using Context information | 4 | |||
FragmentHandler | class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Renders a URI that represents a resource fragment. | 1 | 1 | ||
FragmentListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Handles content fragments represented by special URIs. | 1 | |||
FragmentRendererInterface | interface | Symfony\Component\HttpKernel\Fragment | vendor/ |
Interface implemented by all rendering strategies. | 1 | 2 | ||
FragmentRendererPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Adds services tagged kernel.fragment_renderer as HTTP content rendering strategies. | ||||
FragmentUriGenerator | final class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Generates a fragment URI. | ||||
FragmentUriGeneratorInterface | interface | Symfony\Component\HttpKernel\Fragment | vendor/ |
Interface implemented by rendering strategies able to generate a URL for a fragment. | 1 | |||
Frame | class | WebDriver | vendor/ |
WebDriver\Frame class | ||||
FrameStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents a single backtrace frame as returned by debug_backtrace() or Exception->getTrace(). | ||||
FrenchInflector | final class | Symfony\Component\String\Inflector | vendor/ |
French inflector. | ||||
FriendlySpanConverter | class | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
|||||
FromCallableConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
FromCallableTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
FromTokenParser | final class | Twig\TokenParser | vendor/ |
Imports macros. | 1 | |||
FrontMatter | class | Drupal\Component\FrontMatter | core/ |
Component for parsing front matter from a source. | 3 | |||
FrontMatterParseException | class | Drupal\Component\FrontMatter\Exception | core/ |
Defines a class for front matter parsing exceptions. | 2 | |||
FrozenParameterBag | class | Symfony\Component\DependencyInjection\ParameterBag | vendor/ |
Holds read-only parameters. | 1 | 1 | ||
FTP | abstract class | Drupal\Core\FileTransfer | core/ |
Defines the base class for FTP implementations. | 1 | |||
FTPExtension | class | Drupal\Core\FileTransfer | core/ |
Defines a file transfer class using the PHP FTP extension. | ||||
FuelInstaller | class | Composer\Installers | vendor/ |
|||||
FuelphpInstaller | class | Composer\Installers | vendor/ |
|||||
FulfilledPromise | final class | React\Promise\Internal | vendor/ |
@internal | 1 |