You are here

Namespaces in Drupal 8

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

Namespace
Drupal\common_test\Controller
Drupal\common_test\Render\MainContent
Drupal\Component\Annotation
Drupal\Component\Annotation\Doctrine
Drupal\Component\Annotation\Plugin\Discovery
Drupal\Component\Annotation\Reflection
Drupal\Component\Assertion
Drupal\Component\Bridge
Drupal\Component\ClassFinder
Drupal\Component\Datetime
Drupal\Component\DependencyInjection
Drupal\Component\DependencyInjection\Dumper
Drupal\Component\Diff
Drupal\Component\Diff\Engine
Drupal\Component\Discovery
Drupal\Component\EventDispatcher
Drupal\Component\FileCache
Drupal\Component\FileSecurity
Drupal\Component\FileSystem
Drupal\Component\Gettext
Drupal\Component\Graph
Drupal\Component\HttpFoundation
Drupal\Component\PhpStorage
Drupal\Component\Plugin
Drupal\Component\Plugin\Context
Drupal\Component\Plugin\Definition
Drupal\Component\Plugin\Derivative
Drupal\Component\Plugin\Discovery
Drupal\Component\Plugin\Exception
Drupal\Component\Plugin\Factory
Drupal\Component\Plugin\Mapper
Drupal\Component\ProxyBuilder
Drupal\Component\Render
Drupal\Component\Serialization
Drupal\Component\Serialization\Exception
Drupal\Component\Transliteration
Drupal\Component\Utility
Drupal\Component\Uuid
Drupal\Component\Version
Drupal\Composer
Drupal\Composer\Generator
Drupal\Composer\Generator\Builder
Drupal\Composer\Generator\Util
Drupal\Composer\Plugin\ProjectMessage
Drupal\Composer\Plugin\Scaffold
Drupal\Composer\Plugin\Scaffold\Operations
Drupal\Composer\Plugin\VendorHardening
Drupal\condition_test
Drupal\condition_test\Plugin\Condition
Drupal\config

Pages

Other projects