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 |
|---|---|---|---|---|---|---|---|---|
| FilterFormTest | class | Drupal\Tests\filter\Functional | core/ |
Tests form elements with associated text formats. | ||||
| FilterGroupFormTest | class | Drupal\Tests\views\Functional | core/ |
Tests the filter group form. | ||||
| FilterHooks | class | Drupal\filter\Hook | core/ |
Hook implementations for filter. | ||||
| FilterHooksTest | class | Drupal\Tests\filter\Functional | core/ |
Tests hooks for text formats insert/update/disable. | ||||
| FilterHtml | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to limit allowed HTML tags. | 2 | |||
| FilterHtmlCorrector | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to correct faulty and chopped off HTML. | ||||
| FilterHtmlEscape | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to display any HTML as plain text. | ||||
| FilterHtmlImageSecure | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to restrict images to site. | ||||
| FilterHtmlImageSecureTest | class | Drupal\Tests\filter\Functional | core/ |
Tests restriction of IMG tags in HTML input. | ||||
| FilterHtmlTest | class | Drupal\Tests\filter\Unit | core/ |
Tests Drupal\filter\Plugin\Filter\FilterHtml. | ||||
| FilterID | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\filter\Plugin\migrate\process | core/ |
Determines the filter ID. | 1 | ||
| FilterIdTest | class | Drupal\Tests\filter\Kernel\Plugin\migrate\process | core/ |
Unit tests of the filter_id plugin. | ||||
| FilterImageLazyLoad | final class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to lazy load tracked images. | 1 | |||
| FilterImageLazyLoadTest | final class | Drupal\Tests\filter\Unit | core/ |
Tests Drupal\filter\Plugin\Filter\FilterImageLazyLoad. | ||||
| FilterInOperatorTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\InOperator handler. | ||||
| FilterInterface | interface | Drupal\filter\Plugin | core/ |
Defines the interface for text processing filter plugins. | 1 | 35 | 1 | |
| FilterInterface | interface | Drupal\Core\Routing | core/ |
A route filter service to filter down the collection of route instances. | 5 | 2 | ||
| FilterIsIncompatible | class | Drupal\ckeditor5_incompatible_filter_test\Plugin\Filter | core/ |
Provides a filter incompatible with CKEditor 5. | ||||
| FilterKernelTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests Filter module filters individually. | ||||
| FilterLanguageTest | class | Drupal\Tests\language\Kernel\Views | core/ |
Tests the filter language handler. | ||||
| FilterNodeAccessTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests the node_access filter handler. | ||||
| FilterNoFormatTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests the behavior of check_markup() when it is called without text format. | ||||
| FilterNull | class | Drupal\filter\Plugin\Filter | core/ |
Provides a fallback placeholder filter to use for missing filters. | 1 | |||
| FilterNumericTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the numeric filter handler. | ||||
| FilterNumericWebTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the numeric filter UI. | ||||
| FilterOperatorsInterface | interface | Drupal\views\Plugin\views\filter | core/ |
Provides an interface for all views filters that implement operators. | 4 | |||
| FilterOptionsTest | class | Drupal\Tests\views_ui\FunctionalJavascript | core/ |
Tests the JavaScript filtering of options in add handler form. | ||||
| FilterPermissions | class | Drupal\filter | core/ |
Provides dynamic permissions of the filter module. | ||||
| FilterPermissionUiTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests the permission field handler ui. | ||||
| FilterPlaceholderTextTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests the placeholder text on the appropriate filter handlers. | ||||
| FilterPluginBase | abstract class | Drupal\views\Plugin\views\filter | core/ |
Base class for Views filters handler plugins. | 18 | 10 | ||
| FilterPluginBaseStub | class | Drupal\Tests\views\Unit\Plugin\filter | core/ |
Empty class to support testing filter plugins. | ||||
| FilterPluginBaseTest | class | Drupal\Tests\views\Unit\Plugin\filter | core/ |
Tests Drupal\views\Plugin\views\filter\FilterPluginBase. | ||||
| FilterPluginCollection | class | Drupal\filter | core/ |
A collection of filters. | 8 | |||
| FilterPluginManager | class | Drupal\filter | core/ |
Manages text processing filters. | 2 | 2 | ||
| FilterProcessResult | class | Drupal\filter | core/ |
Used to return values from a text filter plugin's processing method. | 28 | |||
| FilterSecurityKernelTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests that security filters are enforced even when marked to be skipped. | ||||
| FilterSecurityTest | class | Drupal\Tests\filter\Functional | core/ |
Tests HTML filtering with missing or skipped filters or text formats. | ||||
| FilterSettings | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
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/ |
Provides a test filter plugin for Views. | 2 | |||
| FilterTest | class | Drupal\Tests\jsonapi\Kernel\Query | core/ |
Tests Drupal\jsonapi\Query\Filter. | ||||
| 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. |
Pagination
- Previous page
- Page 85
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.