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\language\Kernel core/modules/language/tests/src/Kernel/GenericTest.php Generic module test for language.
GenericTest class Drupal\Tests\dynamic_page_cache\Kernel core/modules/dynamic_page_cache/tests/src/Kernel/GenericTest.php Generic module test for dynamic_page_cache.
GenericTest class Drupal\Tests\jsonapi\Kernel core/modules/jsonapi/tests/src/Kernel/GenericTest.php Generic module test for jsonapi.
GenericTest class Drupal\Tests\config_translation\Kernel core/modules/config_translation/tests/src/Kernel/GenericTest.php Generic module test for config_translation.
GenericTest class Drupal\Tests\field\Kernel core/modules/field/tests/src/Kernel/GenericTest.php Generic module test for field.
GenericTest class Drupal\Tests\media_library\Kernel core/modules/media_library/tests/src/Kernel/GenericTest.php Generic module test for media_library.
GenericTest class Drupal\Tests\layout_builder\Kernel core/modules/layout_builder/tests/src/Kernel/GenericTest.php Generic module test for layout_builder.
GenericTest class Drupal\Tests\content_moderation\Kernel core/modules/content_moderation/tests/src/Kernel/GenericTest.php Generic module test for content_moderation.
GenericTest class Drupal\Tests\options\Kernel core/modules/options/tests/src/Kernel/GenericTest.php Generic module test for options.
GenericTest class Drupal\Tests\menu_link_content\Kernel core/modules/menu_link_content/tests/src/Kernel/GenericTest.php Generic module test for menu_link_content.
GenericTest class Drupal\Tests\menu_ui\Kernel core/modules/menu_ui/tests/src/Kernel/GenericTest.php Generic module test for menu_ui.
GenericTest class Drupal\Tests\sqlite\Kernel core/modules/sqlite/tests/src/Kernel/GenericTest.php Generic module test for sqlite.
GenericTest class Drupal\Tests\mailer\Kernel core/modules/mailer/tests/src/Kernel/GenericTest.php Generic module test for mailer.
GenericTest class Drupal\Tests\ckeditor5\Kernel core/modules/ckeditor5/tests/src/Kernel/GenericTest.php Generic module test for ckeditor5.
GenericTest class Drupal\Tests\config\Kernel core/modules/config/tests/src/Kernel/GenericTest.php Generic module test for config.
GenericTest class Drupal\Tests\mysql\Kernel core/modules/mysql/tests/src/Kernel/GenericTest.php Generic module test for mysql.
GenericTest class Drupal\Tests\package_manager\Kernel core/modules/package_manager/tests/src/Kernel/GenericTest.php Generic module test for package_manager.
GenericTest class Drupal\Tests\path_alias\Kernel core/modules/path_alias/tests/src/Kernel/GenericTest.php Generic module test for path_alias.
GenericTest class Drupal\Tests\serialization\Kernel core/modules/serialization/tests/src/Kernel/GenericTest.php Generic module test for serialization.
GenericTest class Drupal\Tests\views\Kernel core/modules/views/tests/src/Kernel/GenericTest.php Generic module test for views.
GenericTest class Drupal\Tests\link\Kernel core/modules/link/tests/src/Kernel/GenericTest.php Generic module test for link.
GenericTest class Drupal\Tests\rest\Kernel core/modules/rest/tests/src/Kernel/GenericTest.php Generic module test for rest.
GenericTest class Drupal\Tests\inline_form_errors\Kernel core/modules/inline_form_errors/tests/src/Kernel/GenericTest.php Generic module test for inline_form_errors.
GenericTest class Drupal\Tests\workflows\Kernel core/modules/workflows/tests/src/Kernel/GenericTest.php Generic module test for workflows.
GenericTest class Drupal\Tests\field_ui\Kernel core/modules/field_ui/tests/src/Kernel/GenericTest.php Generic module test for field_ui.
GenericTest class Drupal\Tests\syslog\Kernel core/modules/syslog/tests/src/Kernel/GenericTest.php Generic module test for syslog.
GenericTest class Drupal\Tests\announcements_feed\Kernel core/modules/announcements_feed/tests/src/Kernel/GenericTest.php Generic module test for announcements_feed.
GenericTest class Drupal\Tests\help\Kernel core/modules/help/tests/src/Kernel/GenericTest.php Generic module test for help.
GenericTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/GenericTest.php Generic module test for migrate.
GenericTest class Drupal\Tests\content_translation\Kernel core/modules/content_translation/tests/src/Kernel/GenericTest.php Generic module test for content_translation.
GenericTest class Drupal\Tests\datetime_range\Kernel core/modules/datetime_range/tests/src/Kernel/GenericTest.php Generic module test for datetime_range.
GenericTest class Drupal\Tests\layout_discovery\Kernel core/modules/layout_discovery/tests/src/Kernel/GenericTest.php Generic module test for layout_discovery.
GenericTest class Drupal\Tests\text\Kernel core/modules/text/tests/src/Kernel/GenericTest.php Generic module test for text.
GenericTest class Drupal\Tests\block_content\Kernel core/modules/block_content/tests/src/Kernel/GenericTest.php Generic module test for block_content.
GenericTest class Drupal\Tests\system\Kernel core/modules/system/tests/src/Kernel/GenericTest.php Generic module test for system.
GenericTest class Drupal\Tests\automated_cron\Kernel core/modules/automated_cron/tests/src/Kernel/GenericTest.php Generic module test for automated_cron.
GenericTest class Drupal\Tests\path\Kernel core/modules/path/tests/src/Kernel/GenericTest.php Generic module test for path.
GenericTest class Drupal\Tests\datetime\Kernel core/modules/datetime/tests/src/Kernel/GenericTest.php Generic module test for datetime.
GenericTest class Drupal\Tests\image\Kernel core/modules/image/tests/src/Kernel/GenericTest.php Generic module test for image.
GenericTest class Drupal\Tests\basic_auth\Kernel core/modules/basic_auth/tests/src/Kernel/GenericTest.php Generic module test for basic_auth.
GenericTest class Drupal\Tests\update\Kernel core/modules/update/tests/src/Kernel/GenericTest.php Generic module test for update.
GenericTest class Drupal\Tests\comment\Kernel core/modules/comment/tests/src/Kernel/GenericTest.php Generic module test for comment.
GenericTest class Drupal\Tests\block\Kernel core/modules/block/tests/src/Kernel/GenericTest.php Generic module test for block.
GenericTest class Drupal\Tests\views_ui\Kernel core/modules/views_ui/tests/src/Kernel/GenericTest.php Generic module test for views_ui.
GenericTest class Drupal\Tests\pgsql\Kernel core/modules/pgsql/tests/src/Kernel/GenericTest.php Generic module test for pgsql.
GenericTest class Drupal\Tests\contextual\Kernel core/modules/contextual/tests/src/Kernel/GenericTest.php Generic module test for contextual.
GenericTest class Drupal\Tests\editor\Kernel core/modules/editor/tests/src/Kernel/GenericTest.php Generic module test for editor.
GenericTest class Drupal\Tests\big_pipe\Kernel core/modules/big_pipe/tests/src/Kernel/GenericTest.php Generic module test for big_pipe.
GenericTest class Drupal\Tests\taxonomy\Kernel core/modules/taxonomy/tests/src/Kernel/GenericTest.php Generic module test for taxonomy.
GenericTest class Drupal\Tests\breakpoint\Kernel core/modules/breakpoint/tests/src/Kernel/GenericTest.php Generic module test for breakpoint.

Other projects


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