What are namespaces? How to use in drupal 8?
Answer / Syed Azeem Arshad
Namespaces are a way of organizing code to avoid naming conflicts. In Drupal 8, you can use namespaces for custom modules and themes. To use namespaces, first define them in your module's or theme's .info.yml file. Then, when referring to classes, functions, or other items within your namespace, prefix them with the namespace name followed by a backslash ().
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you drop a table using module in drupal?
what are the benefits of drupal?
Explain the menu system in drupal? Purpose of menus?
Is it possible to pass the dynamic values to views?
What are the new features of drupal 8?
What is drupal good for?
For image slider which modules are required in drupal?
What is composer drupal 8?
How to move a drupal site from one host/server to another?
What is the use of weight field while creating menu?
Can we include one php file multiple times?
What are contributed modules in drupal?