Classes, traits, and interfaces - 9.5.x - drupal

Primary tabs

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
FilterCaption class Drupal\filter\Plugin\Filter core/modules/filter/src/Plugin/Filter/FilterCaption.php Provides a filter to caption elements.
FilterCaptionTwigDebugTest class Drupal\Tests\filter\Kernel core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php Tests the caption filter with Twig debugging on.
FilterCombineTest class Drupal\Tests\views\Kernel\Handler core/modules/views/tests/src/Kernel/Handler/FilterCombineTest.php Tests the combine filter handler.
FilterController class Drupal\filter\Controller core/modules/filter/src/Controller/FilterController.php Controller routines for filter routes.
FilterCriteriaTest class Drupal\Tests\views_ui\FunctionalJavascript core/modules/views_ui/tests/src/FunctionalJavascript/FilterCriteriaTest.php Tests the View UI filter criteria group dialog.
FilterCrudTest class Drupal\Tests\filter\Kernel core/modules/filter/tests/src/Kernel/FilterCrudTest.php Tests creation, loading, updating, deleting of text formats and filters.
FilterDateTest class Drupal\Tests\views\Functional\Handler core/modules/views/tests/src/Functional/Handler/FilterDateTest.php Tests the core Drupal\views\Plugin\views\filter\Date handler.
FilterDateTest class Drupal\Tests\datetime\Kernel\Views core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php Tests date-only fields.
FilterDateTest class Drupal\Tests\datetime\Functional\Views core/modules/datetime/tests/src/Functional/Views/FilterDateTest.php Tests Views filters for datetime fields.
FilterDateTest class Drupal\Tests\datetime_range\Kernel\Views core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php Tests date-only fields.
FilterDateTimeTest class Drupal\Tests\datetime\Kernel\Views core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php Tests the Drupal\datetime\Plugin\views\filter\Date handler.
FilterDefaultConfigTest class Drupal\Tests\filter\Kernel core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php Tests text format default configuration.
FilterDefaultFormatTest class Drupal\Tests\filter\Functional core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php Tests the default text formats for different users.
FilterDisableForm class Drupal\filter\Form core/modules/filter/src/Form/FilterDisableForm.php Provides the filter format disable form.
FilteredMarkup final class Drupal\filter\Render core/modules/filter/src/Render/FilteredMarkup.php Defines an object that passes markup through the Filter system. 4
FilteredPluginManagerInterface interface Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/FilteredPluginManagerInterface.php Provides an interface for plugin managers that allow filtering definitions. 4 4
FilteredPluginManagerTrait trait Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/FilteredPluginManagerTrait.php Provides a trait for plugin managers that allow filtering plugin definitions. 4
FilteredPluginManagerTraitTest class Drupal\Tests\Core\Plugin core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php @coversDefaultClass \Drupal\Core\Plugin\FilteredPluginManagerTrait @group Plugin
FilterEntityBundleTest class Drupal\Tests\views\Kernel\Entity core/modules/views/tests/src/Kernel/Entity/FilterEntityBundleTest.php Tests the generic entity bundle filter.
FilterEqualityTest class Drupal\Tests\views\Kernel\Handler core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php Tests the core Drupal\views\Plugin\views\filter\Equality handler.
FilterExceptionTest class Drupal\views_test_data\Plugin\views\filter core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php Breaks the query with adding an invalid where expression.
FilterFormat class Drupal\filter\Entity core/modules/filter/src/Entity/FilterFormat.php Represents a text format. 106
FilterFormat class Drupal\filter\Plugin\DataType core/modules/filter/src/Plugin/DataType/FilterFormat.php The filter format data type. 1
FilterFormat class Drupal\filter\Plugin\migrate\source\d6 core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php Drupal 6 filter source from database.
FilterFormat class Drupal\filter\Plugin\migrate\source\d7 core/modules/filter/src/Plugin/migrate/source/d7/FilterFormat.php Drupal 7 filter source from database.
FilterFormatAccessControlHandler class Drupal\filter core/modules/filter/src/FilterFormatAccessControlHandler.php Defines the access control handler for the filter format entity type.
FilterFormatAccessTest class Drupal\Tests\filter\Functional core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php Tests access to text formats.
FilterFormatAddForm class Drupal\filter core/modules/filter/src/FilterFormatAddForm.php Provides a form for adding a filter format.
FilterFormatEditForm class Drupal\filter core/modules/filter/src/FilterFormatEditForm.php Provides a form for adding a filter format.
FilterFormatFormBase abstract class Drupal\filter core/modules/filter/src/FilterFormatFormBase.php Provides a base form for a filter format. 2
FilterFormatHalJsonAnonTest class Drupal\Tests\hal\Functional\filter core/modules/hal/tests/src/Functional/filter/FilterFormatHalJsonAnonTest.php @group hal @group legacy
FilterFormatHalJsonBasicAuthTest class Drupal\Tests\hal\Functional\filter core/modules/hal/tests/src/Functional/filter/FilterFormatHalJsonBasicAuthTest.php @group hal @group legacy
FilterFormatHalJsonCookieTest class Drupal\Tests\hal\Functional\filter core/modules/hal/tests/src/Functional/filter/FilterFormatHalJsonCookieTest.php @group hal @group legacy
FilterFormatInterface interface Drupal\filter core/modules/filter/src/FilterFormatInterface.php Provides an interface defining a filter format entity. 1 30
FilterFormatJsonAnonTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatJsonAnonTest.php @group rest
FilterFormatJsonBasicAuthTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatJsonBasicAuthTest.php @group rest
FilterFormatJsonCookieTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatJsonCookieTest.php @group rest
FilterFormatListBuilder class Drupal\filter core/modules/filter/src/FilterFormatListBuilder.php Defines a class to build a listing of filter format entities.
FilterFormatPermission class Drupal\filter\Plugin\migrate\process\d6 core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php Migrate filter format serial to string id in permission name. 1
FilterFormatPermissionTest class Drupal\Tests\filter\Kernel\Migrate\d6 core/modules/filter/tests/src/Kernel/Migrate/d6/FilterFormatPermissionTest.php Tests conversion of format serial to string id in permission name.
FilterFormatResourceTestBase abstract class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php 9 3
FilterFormatTest class Drupal\Tests\filter\Kernel\Plugin\migrate\source\d6 core/modules/filter/tests/src/Kernel/Plugin/migrate/source/d6/FilterFormatTest.php Tests D6 filter format source plugin.
FilterFormatTest class Drupal\Tests\filter\Kernel\Plugin\migrate\source\d7 core/modules/filter/tests/src/Kernel/Plugin/migrate/source/d7/FilterFormatTest.php Tests D7 filter format source plugin.
FilterFormatTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php JSON:API integration test for the "FilterFormat" config entity type.
FilterFormatXmlAnonTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatXmlAnonTest.php @group rest
FilterFormatXmlBasicAuthTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatXmlBasicAuthTest.php @group rest
FilterFormatXmlCookieTest class Drupal\Tests\filter\Functional\Rest core/modules/filter/tests/src/Functional/Rest/FilterFormatXmlCookieTest.php @group rest
FilterFormTest class Drupal\Tests\filter\Functional core/modules/filter/tests/src/Functional/FilterFormTest.php Tests form elements with associated text formats.
FilterHooksTest class Drupal\Tests\filter\Functional core/modules/filter/tests/src/Functional/FilterHooksTest.php Tests hooks for text formats insert/update/disable.
FilterHtml class Drupal\filter\Plugin\Filter core/modules/filter/src/Plugin/Filter/FilterHtml.php Provides a filter to limit allowed HTML tags. 2

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.