Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| FloatValue | class | Drupal\Core\Database\SchemaDefinition | core/ |
A class holding a float value. | 1 | |||
| FloodInterface | interface | Drupal\Core\Flood | core/ |
Defines an interface for flood controllers. | 3 | 6 | ||
| FloodTest | class | Drupal\Tests\system\Kernel\System | core/ |
Functional tests for the flood control mechanism. | ||||
| FocusColorPresetUpdateTest | class | Drupal\Tests\default_admin\Kernel | core/ |
Tests the update of legacy focus color preset values. | ||||
| FocusFirstCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for focusing an element. | 4 | |||
| 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. | ||||
| FontFamily | class | Drupal\Core\Theme\Plugin\DesignTokenValue | core/ |
Font family design token value. | 5 | |||
| FontFamilyTest | class | Drupal\Tests\Core\Theme\DesignToken\Plugin | core/ |
Tests font family value plugin. | ||||
| FontWeight | class | Drupal\Core\Theme\Plugin\DesignTokenValue | core/ |
Font weight design token value. | 4 | |||
| FontWeightTest | class | Drupal\Tests\Core\Theme\DesignToken\Plugin | core/ |
Tests font weight value plugin. | ||||
| Foo | class | Drupal\image_test\Plugin\ImageToolkit\Operation\test | core/ |
Builds an image toolkit operation. | ||||
| FooAccessPolicy | class | Drupal\Tests\Core\Session | core/ |
A test access policy for admin and for 'foo' and 'bar' permissions. | ||||
| 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. | ||||
| FooTest | final class | Drupal\Tests\Component\Foo | core/ |
|||||
| ForeignKey | final class | Drupal\Core\Database\SchemaDefinition | core/ |
Describes a database foreign key. | 7 | |||
| Form | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a form. | ||||
| Form | class | Drupal\router_test | core/ |
Form to test _form routing. | 1 | |||
| 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 | 2 | ||
| FormAjaxResponseBuilderTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\FormAjaxResponseBuilder. | ||||
| 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/ |
Tests Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber. | ||||
| 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. | ||||
| FormatPluralUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests the upgrade path for converting format_plural from integer to boolean. | ||||
| FormattableMarkup | class | Drupal\Component\Render | core/ |
Formats a string for HTML display by replacing variable placeholders. | 1 | 49 | ||
| 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. | 33 | 33 | ||
| FormatterInterface | interface | Drupal\Core\Field | core/ |
Interface definition for field formatter plugins. | 1 | 3 | 1 | |
| 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. | 159 | 153 | ||
| FormBuilder | class | Drupal\Core\Form | core/ |
Provides form building and processing. | 3 | 2 | ||
| FormBuilderInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for form building and processing. | 1 | 35 | ||
| FormBuilderTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\FormBuilder. | ||||
| FormCache | class | Drupal\Core\Form | core/ |
Encapsulates the caching of a form and its form state. | 1 | 2 | ||
| FormCacheInterface | interface | Drupal\Core\Form | core/ |
Provides an interface for the caching of a form and its form state. | 2 | 1 | ||
| FormCacheTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\FormCache. | ||||
| FormCacheTest | class | Drupal\KernelTests\Core\Form | core/ |
Tests FormBuilder caching. |
Pagination
- Previous page
- Page 90
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.