php

menu items

During a migration of the content and testing the functionality, we are playing a lot with adding/removing menu items for nodes. Here's a snippet on how to delete all links in a menu.

nodes

Sometimes we need to completely remove all nodes, for example, when you copy a site for another project. Here the examples.

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.

Drupal view - sort Datetime by time only

Working on one project for the KWALL company, we needed to sort the list of TV programs/events by time ignoring the date. We have created a custom views sort plugin for it.