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\Core\Recipe
Drupal\Core\Render
Drupal\Core\Render\Annotation
Drupal\Core\Render\Attribute
Drupal\Core\Render\Component\Exception
Drupal\Core\Render\Element
Drupal\Core\Render\MainContent
Drupal\Core\Render\Placeholder
Drupal\Core\Render\Plugin\DisplayVariant
Drupal\Core\RouteProcessor
Drupal\Core\Routing
Drupal\Core\Routing\Access
Drupal\Core\Routing\Enhancer
Drupal\Core\Security
Drupal\Core\Security\Attribute
Drupal\Core\Session
Drupal\Core\Site
Drupal\Core\StackMiddleware
Drupal\Core\State
Drupal\Core\StreamWrapper
Drupal\Core\StringTranslation
Drupal\Core\StringTranslation\Translator
Drupal\Core\Template
Drupal\Core\Template\Loader
Drupal\Core\TempStore
Drupal\Core\TempStore\Element
Drupal\Core\Test
Drupal\Core\Test\Exception
Drupal\Core\Test\HttpClientMiddleware
Drupal\Core\Test\RunTests
Drupal\Core\Test\StackMiddleware
Drupal\Core\Theme
Drupal\Core\Theme\Component
Drupal\Core\Transliteration
Drupal\Core\TypedData
Drupal\Core\TypedData\Annotation
Drupal\Core\TypedData\Attribute
Drupal\Core\TypedData\Exception
Drupal\Core\TypedData\Plugin\DataType
Drupal\Core\TypedData\Type
Drupal\Core\TypedData\Validation
Drupal\Core\Update
Drupal\Core\Updater
Drupal\Core\Utility
Drupal\Core\Validation
Drupal\Core\Validation\Annotation
Drupal\Core\Validation\Attribute
Drupal\Core\Validation\Plugin\Validation\Constraint
Drupal\core_fake\Driver\Database\CoreFake
Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses

Other projects


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