Articles

Drupal Redirects

Sometimes we need to completely remove redirect entities, for example, when you copy a site for another project. Here are two examples.

drupal paragraphs

Sometimes we need to completely remove paragraphs entities, for example, when you copy a site for another project. Here are two examples.

drupal entities

Sometimes we need to completely remove media entities, for example, when you copy a site for another project. Here are two examples.

Views Exposed Filters Form with custom Twig template

How override/customize/theme Drupal Views Exposed Filters form with a custom Twig template? Easy! Real working tutorial. Step by step in 5 mins.

A custom validator for checking Start time field depending on the value of End Time

In one project I use two independent date fields "Start Time" and "End Time". Both fields are optional, indecencies and don't know about each other. However, if "End Time" is selected, I need to check "Start Time" and display a message, so the first field shouldn't be empty and "End Time" should be greater or equal. This code shows a solution how to implement.