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 often does drupal update?
Explain roles, user and permissions?
What is the use of taxonomy and vocabulary in drupal?
How will do the core upgrade in drupal?
Why do you think drupal is powerful & popular cms compare to others?
What is responsive theme?
what Drupal distributions is and when to use?
How cache_form table works?
What is Multilingual content?
What do you mean by hooks in drupal?
How can you comment on the scalability factor of the drupal?
How to update the drupal?