


How do I make the exposed filter values available as tokens for text areas
How do I display (or render in twig) the search term, entered in the search field. When you enter a search term and click on the search button, you will go to the search results page (view). In the header of that view I want to display something like: Your search of... read more
Creating a Paragraph type programmatically
I have a custom module that is installed on a number of sites. In an hook_update_n function I would like to add a completely new Paragraph type (not actual instance of a Paragraph) to every site, using the same configuration. Adding or updating fields to an existing... read more
How do I make rows of views blocks on a basic page reacting collectively to an exposed filter?
I have to make a page, containing 3 rows with 3 blocks with content teasers. Preferably the page layout should be made through a basic page content type item, through the Layout Builder, so it is easy to add other stuff. At the top of the page should come a... read more
Filter a view based on current user’s roles
I’m using a view to populate an Entity reference field on a profile. (So it’s a view of “Entity Reference” display type.) I want to filter this view to show (and allow users to select) only: Published content (OK) Content of a certain type (OK)... read more
Plugin Not Found Exception
I am implementing REST in Drupal 8. I have created a custom plugin for REST resource, enabled the plugin and configured permissions for that REST endpoint. After few days, I removed the code for plugin without disabling the REST endpoint. I am encountering a plugin... read more
How do I add a script just above the closing body tag?
How do I add a script on Drupal 8 site/app just above closing body tag? Vendor provided some JS in the following form: <script> … code </script> Asked me to place immediately above </body>. The script was only to run for Anonymous traffic.... read more
views_pre_render add class item to a row
When pre-rendering a view row is there a way to add an HTML class into a single row of the markup, allowing me to add a new background colour to the event item highlighting its importance? This is for the calendar module monthly view For example, <div... read more