php

Image
drupal entities

Sometimes during development, we need to completely remove all users from the site, for example, when you copy a site for another project or work with migration.

Image
drupal entities

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.

Image
drupal entities

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

Image
Drupal Redirects

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

Image
drupal paragraphs

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

Image
drupal entities

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

Image
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.