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 |
|---|---|---|---|---|---|---|---|---|
| FilterEntityReferenceTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\EntityReference handler. | ||||
| FilterEntityReferenceTest | class | Drupal\Tests\views_ui\FunctionalJavascript | core/ |
Tests views creation wizard. | ||||
| FilterEntityReferenceTrait | trait | Drupal\Tests\views_ui\Traits | core/ |
Sets up the entity types and relationships for entity reference tests. | 3 | |||
| FilterEntityReferenceWebTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the entity reference filter UI. | ||||
| FilterEqualityTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\Equality handler. | ||||
| FilterExceptionTest | class | Drupal\views_test_data\Plugin\views\filter | core/ |
Breaks the query with adding an invalid where expression. | ||||
| FilterFormat | class | Drupal\filter\Plugin\migrate\source\d6 | core/ |
Drupal 6 filter source from database. | 1 | |||
| FilterFormat | class | Drupal\filter\Plugin\migrate\source\d7 | core/ |
Drupal 7 filter source from database. | 1 | |||
| FilterFormat | class | Drupal\filter\Entity | core/ |
Represents a text format. | 98 | |||
| FilterFormat | class | Drupal\filter\Plugin\DataType | core/ |
The filter format data type. | 1 | |||
| FilterFormatAccessControlHandler | class | Drupal\filter | core/ |
Defines the access control handler for the filter format entity type. | 1 | |||
| FilterFormatAccessTest | class | Drupal\Tests\filter\Functional | core/ |
Tests access to text formats. | ||||
| FilterFormatAddForm | class | Drupal\filter | core/ |
Provides a form for adding a filter format. | 1 | |||
| FilterFormatEditForm | class | Drupal\filter | core/ |
Provides a form for adding a filter format. | 1 | |||
| FilterFormatFormBase | abstract class | Drupal\filter | core/ |
Provides a base form for a filter format. | 2 | |||
| FilterFormatInterface | interface | Drupal\filter | core/ |
Provides an interface defining a filter format entity. | 1 | 27 | ||
| FilterFormatJsonAnonTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Json Anon. | ||||
| FilterFormatJsonBasicAuthTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Json Basic Auth. | ||||
| FilterFormatJsonCookieTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Json Cookie. | ||||
| FilterFormatListBuilder | class | Drupal\filter | core/ |
Defines a class to build a listing of filter format entities. | 1 | |||
| FilterFormatPermission | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\filter\Plugin\migrate\process\d6 | core/ |
Migrate filter format serial to string id in permission name. | 1 | ||
| FilterFormatPermissionTest | class | Drupal\Tests\filter\Kernel\Migrate\d6 | core/ |
Tests conversion of format serial to string id in permission name. | ||||
| FilterFormatRepository | class | Drupal\filter | core/ |
Provides a repository service for filter formats. | 1 | 2 | ||
| FilterFormatRepositoryInterface | interface | Drupal\filter | core/ |
Provides an interface for a repository for filter formats. | 1 | 41 | ||
| FilterFormatRepositoryTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests the Drupal\filter\FilterFormatRepositoryInterface service. | ||||
| FilterFormatResourceTestBase | abstract class | Drupal\Tests\filter\Functional\Rest | core/ |
Resource test base for the FilterFormat entity. | 6 | |||
| FilterFormatTest | class | Drupal\Tests\filter\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 filter format source plugin. | ||||
| FilterFormatTest | class | Drupal\Tests\filter\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 filter format source plugin. | ||||
| FilterFormatTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "FilterFormat" config entity type. | ||||
| FilterFormatValidationTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests validation of filter_format entities. | ||||
| FilterFormatXmlAnonTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Xml Anon. | ||||
| FilterFormatXmlBasicAuthTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Xml Basic Auth. | ||||
| FilterFormatXmlCookieTest | class | Drupal\Tests\filter\Functional\Rest | core/ |
Tests Filter Format Xml Cookie. | ||||
| 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\Core\Routing | core/ |
A route filter service to filter down the collection of route instances. | 5 | 2 | ||
| FilterInterface | interface | Drupal\filter\Plugin | core/ |
Defines the interface for text processing filter plugins. | 1 | 36 | 1 |
Pagination
- Previous page
- Page 86
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.