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 |
---|---|---|---|---|---|---|---|---|
FilterUninstallValidator | class | Drupal\filter | core/ |
Prevents uninstallation of modules providing used filter plugins. | 2 | |||
FilterUninstallValidatorTest | class | Drupal\Tests\filter\Unit | core/ |
@coversDefaultClass \Drupal\filter\FilterUninstallValidator @group filter | ||||
FilterUrl | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to convert URLs into links. | 1 | |||
FinalExceptionSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Last-chance handler for exceptions: the final exception subscriber. | 1 | 1 | 2 | |
FinalExceptionSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\FinalExceptionSubscriber @group EventSubscriber | ||||
FinalMissingContentSubscriber | class | Drupal\Core\Config\Importer | core/ |
Final event subscriber to the missing content event. | 2 | |||
FinishResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle finished responses. | 2 | |||
Fixed | class | Drupal\views\Plugin\views\argument_default | core/ |
The fixed argument default handler. | ||||
FixtureDeprecatedClass | class | Drupal\deprecation_test\Deprecation | core/ |
Fixture class for use by DrupalStandardsListenerDeprecationTest. | 4 | 2 | ||
Fixtures | class | Drupal\Tests\Composer\Generator | core/ |
Convenience class for creating fixtures. | ||||
Fixtures | class | Drupal\Tests\Composer\Plugin\Scaffold | core/ |
Convenience class for creating fixtures. | 8 | |||
Flatten | class | Drupal\migrate\Plugin\migrate\process | core/ |
Flattens the source value. | 1 | |||
FlattenTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the flatten plugin. | ||||
FloatData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The float data type. | 1 | 1 | ||
FloatInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for floating-point numbers. | 1 | 5 | ||
FloatItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'float' field type. | ||||
FloodInterface | interface | Drupal\Core\Flood | core/ |
Defines an interface for flood controllers. | 3 | 8 | ||
FloodTest | class | Drupal\Tests\system\Kernel\System | core/ |
Functional tests for the flood control mechanism. | ||||
FocusFirstCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for focusing an element. | 2 | |||
FocusFirstCommandTest | class | Drupal\FunctionalJavascriptTests\Ajax | core/ |
Tests setting focus via AJAX command. | ||||
FolderTest | class | Drupal\FunctionalTests | core/ |
Tests BrowserTestBase's treatment of hook_install() during setup. | ||||
FollowUpMigrationsTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests follow-up migrations. | ||||
FollowUpMigrationsTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Tests follow-up migrations. | ||||
Foo | class | Drupal\image_test\Plugin\ImageToolkit\Operation\test | core/ |
Builds an image toolkit operation. | ||||
FooCacheContext | class | Drupal\Tests\Core\Cache\Context | core/ |
Fake cache context class. | ||||
FooDerived | class | Drupal\image_test\Plugin\ImageToolkit\Operation\test | core/ |
Builds an image toolkit operation. | ||||
Form | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a form. | ||||
FormActionXssTest | class | Drupal\KernelTests\Core\Form | core/ |
Ensures that a form's action attribute can't be exploited with XSS. | ||||
FormAjaxException | class | Drupal\Core\Form | core/ |
Custom exception to break out of AJAX form processing. | 2 | |||
FormAjaxResponseBuilder | class | Drupal\Core\Form | core/ |
Builds an AJAX form response. | 1 | 2 | ||
FormAjaxResponseBuilderInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for building AJAX form responses. | 1 | 1 | ||
FormAjaxResponseBuilderTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormAjaxResponseBuilder @group Form | ||||
FormAjaxSubscriber | class | Drupal\Core\Form\EventSubscriber | core/ |
Wraps AJAX form submissions that are triggered via an exception. | 1 | 2 | ||
FormAjaxSubscriberTest | class | Drupal\Tests\Core\Form\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber @group EventSubscriber | ||||
FormatDate | class | Drupal\migrate\Plugin\migrate\process | core/ |
Converts date/datetime from one format to another. | 1 | |||
FormatDateTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the format date process plugin. | ||||
FormatDateTest | class | Drupal\Tests\system\Functional\Common | core/ |
Tests the DateFormatterInterface::format() function. | ||||
FormattableMarkup | class | Drupal\Component\Render | core/ |
Formats a string for HTML display by replacing variable placeholders. | 1 | 224 | ||
FormattableMarkupKernelTest | class | Drupal\KernelTests\Component\Render | core/ |
Provides a test covering integration of FormattableMarkup with other systems. | ||||
FormattableMarkupTest | class | Drupal\Tests\Component\Render | core/ |
Tests the TranslatableMarkup class. | ||||
FormattedDateDiff | class | Drupal\Core\Datetime | core/ |
Contains a formatted time difference. | 1 | |||
FormatterBase | abstract class | Drupal\Core\Field | core/ |
Base class for 'Field formatter' plugin implementations. | 35 | 35 | ||
FormatterInterface | interface | Drupal\Core\Field | core/ |
Interface definition for field formatter plugins. | 1 | 2 | ||
FormatterPluginManager | class | Drupal\Core\Field | core/ |
Plugin type manager for field formatters. | 6 | 2 | ||
FormatterPluginManagerTest | class | Drupal\Tests\field\Kernel | core/ |
Tests the field formatter plugin manager. | ||||
FormBase | abstract class | Drupal\Core\Form | core/ |
Provides a base class for forms. | 148 | 145 | ||
FormBuilder | class | Drupal\Core\Form | core/ |
Provides form building and processing. | 2 | 2 | ||
FormBuilderInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for form building and processing. | 1 | 27 | ||
FormBuilderTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\FormBuilder @group Form | ||||
FormCache | class | Drupal\Core\Form | core/ |
Encapsulates the caching of a form and its form state. | 1 | 2 |
Pagination
- Previous page
- Page 76
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.