Search is an important function in almost every site. There is a simple feature which we can implement to improve user experience, and that is ‘search autocomplete’.
In this article I am going to show you an example use case of PHP 8 attributes in Drupal: creating a POC for a plugin discovery mechanism that works alongside the existing ones.