Namespaces - 11.x - drupal

Primary tabs

Introduction to namespaces

PHP classes, interfaces, and traits in Drupal are namespaced. See the Objected-oriented programming conventions for more information.

See also

Objected-oriented programming conventions

File

core/core.api.php, line 1534

Namespace
Drupal\PHPStan\Rules
Drupal\PHPStan\Tests
Drupal\phpunit_test
Drupal\plugin_test
Drupal\plugin_test\Plugin
Drupal\plugin_test\Plugin\Annotation
Drupal\plugin_test\Plugin\Attribute
Drupal\plugin_test\Plugin\plugin_test\custom_annotation
Drupal\plugin_test\Plugin\plugin_test\fruit
Drupal\plugin_test\Plugin\plugin_test\mock_block
Drupal\plugin_test_extended\Plugin\Annotation
Drupal\plugin_test_extended\Plugin\plugin_test\fruit
Drupal\position_shim_test\Controller
Drupal\render_array_non_html_subscriber_test
Drupal\render_attached_test\Controller
Drupal\render_attached_test\Plugin\Block
Drupal\render_placeholder_message_test
Drupal\responsive_image
Drupal\responsive_image\Element
Drupal\responsive_image\Entity
Drupal\responsive_image\Plugin\Field\FieldFormatter
Drupal\responsive_image\Plugin\migrate\process
Drupal\responsive_image\Plugin\migrate\source\d7
Drupal\responsive_image_test_module\Plugin\Field\FieldFormatter
Drupal\rest
Drupal\rest\Annotation
Drupal\rest\Attribute
Drupal\rest\Entity
Drupal\rest\EventSubscriber
Drupal\rest\Plugin
Drupal\rest\Plugin\Deriver
Drupal\rest\Plugin\rest\resource
Drupal\rest\Plugin\Type
Drupal\rest\Plugin\views\display
Drupal\rest\Plugin\views\row
Drupal\rest\Plugin\views\style
Drupal\rest\Routing
Drupal\rest_test\Authentication\Provider
Drupal\rest_test\PageCache\RequestPolicy
Drupal\rest_test\Plugin\rest\resource
Drupal\rest_test\Plugin\Validation\Constraint
Drupal\router_test
Drupal\router_test\Access
Drupal\sdc
Drupal\sdc\Component
Drupal\sdc\Element
Drupal\sdc\Exception
Drupal\sdc\Plugin
Drupal\sdc\Plugin\Discovery
Drupal\sdc\Twig

Other projects


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