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 |
|---|---|---|---|---|---|---|---|---|
| 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/ |
@coversDefaultClass \Drupal\filter\Plugin\Filter\FilterHtml[[api-linebreak]] @group filter | ||||
| FilterHtmlTest | class | Drupal\Tests\filter\FunctionalJavascript | core/ |
Tests the 'filter_html' plugin javascript functionality. | ||||
| FilterID | class | Drupal\filter\Plugin\migrate\process | core/ |
Plugin annotation @MigrateProcessPlugin( id = "filter_id" ) | 1 | |||
| FilterIdTest | class | Drupal\Tests\filter\Kernel\Plugin\migrate\process | core/ |
Unit tests of the filter_id plugin. | ||||
| 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 | 16 | ||
| 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. | ||||
| 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. | 19 | 10 | ||
| FilterPluginBaseStub | class | Drupal\Tests\views\Unit\Plugin\filter | core/ |
|||||
| FilterPluginBaseTest | class | Drupal\Tests\views\Unit\Plugin\filter | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\filter\FilterPluginBase[[api-linebreak]] @group views | ||||
| FilterPluginCollection | class | Drupal\filter | core/ |
A collection of filters. | 6 | |||
| 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. | 24 | |||
| 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\Tests\jsonapi\Kernel\Query | core/ |
@coversDefaultClass \Drupal\jsonapi\Query\Filter[[api-linebreak]] @group jsonapi @group jsonapi_query | ||||
| FilterTest | class | Drupal\views_test_data\Plugin\views\filter | core/ |
Plugin annotation @ViewsFilter("test_filter"); | 2 | |||
| 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. |
Pagination
- Previous page
- Page 75
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.