For a certain view, if it returns only one result, you wish to redirect the users to the single result URL? This is possible by choosing the right hook "hook_views_post_render()", here you go (example implementation): /** * Implements hook
Drupal
Update hooks don't always have to do something technical. They can also be used to inform administrators / site owners running the update about important or even breaking changes (BC). For example this might happen if manual interaction is
function mymodule_update_8000(&$sandbox) { $message = '' // Only create if the redirect view doesn't exist and views is enabled. $new_view_id = 'YOURVIEWID'; if (\Drupal::moduleHandler()->moduleExists('views') && !\Drupal\views\Entity\View
Today, I'd like to share an excellent blog article about Drupal Services and Dependency injection. Especially for Drupal newbies and junior developers, this isn't a simple topic, but this blog article is really a great start: https://www
This post saved you a lot of time and headache?
Then I'd be very happy about a delicious coffee! Or a helpful book from my wish list.