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\Tests\migrate_drupal\Functional core/modules/migrate_drupal/tests/src/Functional/GenericTest.php Generic module test for migrate_drupal.
GenericTest class Drupal\Tests\navigation\Functional core/modules/navigation/tests/src/Functional/GenericTest.php Generic module test for navigation.
GenericTest class Drupal\Tests\dblog\Functional core/modules/dblog/tests/src/Functional/GenericTest.php Generic module test for dblog.
GenericTest class Drupal\Tests\user\Functional core/modules/user/tests/src/Functional/GenericTest.php Generic module test for user.
GenericTest class Drupal\Tests\mysqli\Functional core/modules/mysqli/tests/src/Functional/GenericTest.php Generic module test for mysqli.
GenericTest class Drupal\Tests\phpass\Functional core/modules/phpass/tests/src/Functional/GenericTest.php Generic module test for phpass.
GenericTest class Drupal\FunctionalTests\Recipe\Core\content_search core/recipes/content_search/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\basic_shortcuts core/recipes/basic_shortcuts/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\page_content_type core/recipes/page_content_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\basic_html_format_editor core/recipes/basic_html_format_editor/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\core_recommended_performance core/recipes/core_recommended_performance/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\administrator_role core/recipes/administrator_role/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\remote_video_media_type core/recipes/remote_video_media_type/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\article_tags core/recipes/article_tags/tests/src/Functional/GenericTest.php Tests Generic.
GenericTest class Drupal\FunctionalTests\Recipe\Core\content_editor_role core/recipes/content_editor_role/tests/src/Functional/GenericTest.php Tests Generic.
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\media\Kernel core/modules/media/tests/src/Kernel/GenericTest.php Generic module test for media.
GenericTest class Drupal\Tests\file\Kernel core/modules/file/tests/src/Kernel/GenericTest.php Generic module test for file.
GenericTest class Drupal\Tests\locale\Kernel core/modules/locale/tests/src/Kernel/GenericTest.php Generic module test for locale.
GenericTest class Drupal\Tests\page_cache\Kernel core/modules/page_cache/tests/src/Kernel/GenericTest.php Generic module test for page_cache.
GenericTest class Drupal\Tests\responsive_image\Kernel core/modules/responsive_image/tests/src/Kernel/GenericTest.php Generic module test for responsive_image.
GenericTest class Drupal\Tests\navigation\Kernel core/modules/navigation/tests/src/Kernel/GenericTest.php Generic module test for navigation.
GenericTest class Drupal\Tests\dblog\Kernel core/modules/dblog/tests/src/Kernel/GenericTest.php Generic module test for dblog.

Other projects


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