CORS (Cross Origin Resource Sharing) in drupal 8

I was developing an Ionic Hybrid App that fetches results from the Drupal 8 website and shows recent news with categories. That app also has some…

Custom twig function and filter in Drupal 8

Twig is a part of the Symfony framework and introduced as a template engine. Drupal 8 also uses twig as a template engine. We can modify incoming…

Create custom REST Resource for GET and POST method in Drupal 8

One of the important features that are inspired by drupal 7 and imported to Drupal 8 with enhancement is its REST API. Drupal provides inbuilt Rest…