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.
php
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.
Sometimes we need to completely remove all nodes, for example, when you copy a site for another project. Here the examples.
Sometimes we need to completely remove redirect entities, for example, when you copy a site for another project. Here are two examples.
Sometimes we need to completely remove paragraphs entities, for example, when you copy a site for another project. Here are two examples.
Sometimes we need to completely remove media entities, for example, when you copy a site for another project. Here are two examples.
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.