Drupal 8

Drupal 8 Snippets and How to, uses, configurations

Debugging Drupal8 Manually how to debug manual

Debugging Drupal8 Core Manually

ill tell you How to debug Drupal 8 Core, No steps, No format, Just follow,

First you need to know php oops namespace use, psr 4 - autoloader, yaml, Dependency Injection , Service Containers.

Open some file in drupal 8 now.

Did you find anything,

Let me tell you the file navigate to drupal 8 installed root path in file view.

Now think of the function you use in drupal 8 to generate Url.

Url::fromUri($_SERVER['HTTP_REFERER'])->toString();

 

Oops namespace in drupal 8

Before Going to Drupal 8. letme tell you about namespace

What is namespace ?

My description in oops. its just to solve the conflict between defining same class in an application.

Say for example in your college or workplace  you would have 2 or more  person with the same name. You would end up in confusion or curious to know  which person is that when somebodies talking or gossiping about that name. so to overcome this you people would come up with  some pet name or nick name to them.

Same here.so namespace its just a nickname for a class