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 |
|---|---|---|---|---|---|---|---|---|
| FilterProcessResult | class | Drupal\filter | core/ |
Used to return values from a text filter plugin's processing method. | 25 | |||
| FilterSecurityTest | class | Drupal\Tests\filter\Functional | core/ |
Tests HTML filtering with missing or skipped filters or text formats. | ||||
| FilterSettings | class | Drupal\filter\Plugin\migrate\process | core/ |
Adds the default allowed attributes to filter_html's allowed_html setting. | 1 | |||
| FilterSettingsTest | class | Drupal\Tests\filter\Kernel\Plugin\migrate\process | core/ |
Unit tests of the filter_settings plugin. | ||||
| FilterSparkles | class | Drupal\filter_test_plugin\Plugin\Filter | core/ |
Provides a filter to limit allowed HTML tags. | ||||
| FilterStringTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\StringFilter handler. | ||||
| FilterTest | class | Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler | core/ |
Tests the add filter handler UI. | ||||
| FilterTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests general filter plugin functionality. | ||||
| FilterTest | class | Drupal\views_test_data\Plugin\views\filter | core/ |
#[ViewsFilter("test_filter")] | 2 | |||
| FilterTest | class | Drupal\Tests\jsonapi\Kernel\Query | core/ |
@coversDefaultClass \Drupal\jsonapi\Query\Filter[[api-linebreak]] @group jsonapi @group jsonapi_query @group #slow | ||||
| FilterTestAssets | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to attach assets. | ||||
| FilterTestCacheContexts | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to associate cache contexts. | ||||
| FilterTestCacheMerge | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to merge with CacheableMetadata. | ||||
| FilterTestCacheTags | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to associate cache tags. | ||||
| FilterTestFormatForm | class | Drupal\filter_test\Form | core/ |
Shows a test form for testing the 'text_format' form element. | 1 | |||
| FilterTestPlaceholders | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to use placeholders. | ||||
| FilterTestReplace | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to replace all content. | ||||
| FilterTestRestrictTagsAndAttributes | class | Drupal\filter_test\Plugin\Filter | core/ |
Provides a test filter to restrict HTML tags and attributes. | ||||
| FilterTestStatic | class | Drupal\filter_test_plugin\Plugin\Filter | core/ |
Provides a filter that returns the same static text. | ||||
| FilterUidRevisionTest | class | Drupal\Tests\node\Kernel\Views | core/ |
Tests the node_uid_revision handler. | ||||
| FilterUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests for the filters from the UI. | ||||
| FilterUninstallValidator | class | Drupal\filter\ProxyClass | core/ |
Provides a proxy class for \Drupal\filter\FilterUninstallValidator. | ||||
| 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[[api-linebreak]] @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[[api-linebreak]] @group EventSubscriber | ||||
| FinalMissingContentSubscriber | class | Drupal\Core\Config\Importer | core/ |
Final event subscriber to the missing content event. | 2 | |||
| FinalTestHttpMiddlewareClass | final class | Drupal\Tests\Core\DependencyInjection\Fixture | core/ |
Stub of http_middleware class that is declared final. | 1 | |||
| FinalTestNonTerminableHttpMiddlewareClass | final class | Drupal\Tests\Core\DependencyInjection\Fixture | core/ |
Stub of http_middleware class that is declared final but is not terminable. | 1 | |||
| Finder | final class | Drupal\Core\DefaultContent | core/ |
Finds all default content in a directory, in dependency order. | 4 | |||
| FinderTest | class | Drupal\Tests\Core\DefaultContent | core/ |
@covers \Drupal\Core\DefaultContent\Finder[[api-linebreak]] @group DefaultContent | ||||
| FinishResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to handle finished responses. | 1 | 2 | ||
| FinishResponseSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\FinishResponseSubscriber[[api-linebreak]] @group EventSubscriber | ||||
| 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 | 6 | ||
| 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. | 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. |
Pagination
- Previous page
- Page 79
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.