Classes, traits, and interfaces - main - 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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
GenericTest class Drupal\FunctionalTests\Recipe\Core\audio_media_type core/recipes/audio_media_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\user_picture core/recipes/user_picture/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\article_comment core/recipes/article_comment/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\local_video_media_type core/recipes/local_video_media_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\standard core/recipes/standard/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\core_recommended_admin_theme core/recipes/core_recommended_admin_theme/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\restricted_html_format core/recipes/restricted_html_format/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\full_html_format_editor core/recipes/full_html_format_editor/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\comment_base core/recipes/comment_base/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\basic_block_type core/recipes/basic_block_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\core_recommended_maintenance core/recipes/core_recommended_maintenance/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\tags_taxonomy core/recipes/tags_taxonomy/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\standard_responsive_images core/recipes/standard_responsive_images/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\image_media_type core/recipes/image_media_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\core_recommended_front_end_theme core/recipes/core_recommended_front_end_theme/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\editorial_workflow core/recipes/editorial_workflow/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\article_content_type core/recipes/article_content_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\document_media_type core/recipes/document_media_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\Tests\comment\Functional core/modules/comment/tests/src/Functional/GenericTest.php Generic module test for comment.
GenericTest class Drupal\Tests\block\Functional core/modules/block/tests/src/Functional/GenericTest.php Generic module test for block.
GenericTest class Drupal\Tests\views_ui\Functional core/modules/views_ui/tests/src/Functional/GenericTest.php Generic module test for views_ui.
GenericTest class Drupal\Tests\pgsql\Functional core/modules/pgsql/tests/src/Functional/GenericTest.php Generic module test for pgsql.
GenericTest class Drupal\Tests\contextual\Functional core/modules/contextual/tests/src/Functional/GenericTest.php Generic module test for contextual.
GenericTest class Drupal\Tests\editor\Functional core/modules/editor/tests/src/Functional/GenericTest.php Generic module test for editor.
GenericTest class Drupal\Tests\big_pipe\Functional core/modules/big_pipe/tests/src/Functional/GenericTest.php Generic module test for big_pipe.
GenericTest class Drupal\Tests\workspaces_ui\Functional core/modules/workspaces_ui/tests/src/Functional/GenericTest.php Generic module test for workspaces_ui.
GenericTest class Drupal\Tests\taxonomy\Functional core/modules/taxonomy/tests/src/Functional/GenericTest.php Generic module test for taxonomy.
GenericTest class Drupal\Tests\breakpoint\Functional core/modules/breakpoint/tests/src/Functional/GenericTest.php Generic module test for breakpoint.
GenericTest class Drupal\Tests\settings_tray\Functional core/modules/settings_tray/tests/src/Functional/GenericTest.php Generic module test for settings_tray.
GenericTest class Drupal\Tests\media\Functional core/modules/media/tests/src/Functional/GenericTest.php Generic module test for media.
GenericTest class Drupal\Tests\mailer\Functional core/modules/mailer/tests/src/Functional/GenericTest.php Generic module test for mailer.
GenericTest class Drupal\Tests\ckeditor5\Functional core/modules/ckeditor5/tests/src/Functional/GenericTest.php Generic module test for ckeditor5.
GenericTest class Drupal\Tests\search\Functional core/modules/search/tests/src/Functional/GenericTest.php Generic module test for search.
GenericTest class Drupal\Tests\language\Functional core/modules/language/tests/src/Functional/GenericTest.php Generic module test for language.
GenericTest class Drupal\Tests\telephone\Functional core/modules/telephone/tests/src/Functional/GenericTest.php Generic module test for telephone.
GenericTest class Drupal\Tests\dynamic_page_cache\Functional core/modules/dynamic_page_cache/tests/src/Functional/GenericTest.php Generic module test for dynamic_page_cache.
GenericTest class Drupal\Tests\jsonapi\Functional core/modules/jsonapi/tests/src/Functional/GenericTest.php Generic module test for jsonapi.
GenericTest class Drupal\Tests\config_translation\Functional core/modules/config_translation/tests/src/Functional/GenericTest.php Generic module test for config_translation.
GenericTest class Drupal\Tests\field\Functional core/modules/field/tests/src/Functional/GenericTest.php Generic module test for field.
GenericTest class Drupal\Tests\media_library\Functional core/modules/media_library/tests/src/Functional/GenericTest.php Generic module test for media_library.
GenericTest class Drupal\Tests\layout_builder_expose_all_field_blocks\Functional core/modules/layout_builder/modules/layout_builder_expose_all_field_blocks/tests/src/Functional/GenericTest.php Generic module test for layout_builder_expose_all_field_blocks.
GenericTest class Drupal\Tests\layout_builder\Functional core/modules/layout_builder/tests/src/Functional/GenericTest.php Generic module test for layout_builder.
GenericTest class Drupal\Tests\node\Functional core/modules/node/tests/src/Functional/GenericTest.php Generic module test for node.
GenericTest class Drupal\Tests\config\Functional core/modules/config/tests/src/Functional/GenericTest.php Generic module test for config.
GenericTest class Drupal\Tests\mysql\Functional core/modules/mysql/tests/src/Functional/GenericTest.php Generic module test for mysql.
GenericTest class Drupal\Tests\package_manager\Functional core/modules/package_manager/tests/src/Functional/GenericTest.php Generic module test for package_manager.
GenericTest class Drupal\Tests\path_alias\Functional core/modules/path_alias/tests/src/Functional/GenericTest.php Generic module test for path_alias.
GenericTest class Drupal\Tests\contact\Functional core/modules/contact/tests/src/Functional/GenericTest.php Generic module test for contact.
GenericTest class Drupal\Tests\content_moderation\Functional core/modules/content_moderation/tests/src/Functional/GenericTest.php Generic module test for content_moderation.
GenericTest class Drupal\Tests\shortcut\Functional core/modules/shortcut/tests/src/Functional/GenericTest.php Generic module test for shortcut.

Other projects


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