tweaks

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
Search

In a project where we use the Search API to search for content, we noticed that nodes that are marked as "noindex" by the Metatag module are visible during internal searches. Here is a ready-made solution for how to avoid this.

Image
drupal entities

This is an issue that can happen in both Drupal 8 and Drupal 9. This is due to the fact that Drupal doesn’t actually delete the data for the field when you delete the field. It deletes the data during cron runs. If cron hasn’t been run enough times since you deleted the field, drupal won’t let you uninstall the module.

Image
drupal entities

Retrieving the image URL from an image field in Drupal 8 and 9 seemed pretty straightforward too. Even the solution for getting the image style URL from a simple image field can be found quite easily. Getting the image URL from a media field can also be looked up easily.

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
Social Icons

Social media is an extremely valuable tool for promoting your marketing content. However, with so many social networks providing their own individual content sharing and follow buttons, it's often difficult to know which social media button to use for what purpose.

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.