Using if $nid is equal to added so add noindex in head tag for this we can using theme_preprocess_html() hook. function example_theme_th...
Using Drupal Hook you can hide and disble any field from Drupal frontend using below code snippet: Below code add on any drupal custom code ...
Using Nginx instead of Apache Nginx and Apache, both are widely used web servers. Nginx has an edge over Ap...
Core Drupal 8 modules for web services Serialization :- The Serialization module serializes and deserializes your Drupal website data to and...
Simple snippet on how to create users programmatically in Drupal 8 and Drupal 9 just add the following code inside a function where you wan...
This article shows you how to create Token Drupal to return absolute URL and image URL path of article content type content without langua...
The code snippet that can use to disable cache for a specific page in drupal 8. Disable cache for a specific content type Example: <?ph...