Blog
Render a button in drupal 8 & 9 with a render array
Render arrays are great for styling elements to keep consistency across future updates. Today: buttons.
Blog
Check if a form is an entityForm
EntityForms are gaining importance in drupal 8 and 9. This is how to make sure you are in one.
Blog
Change label and description of a revision log field in drupal 8 and 9
Revisions are a great thing for tracking changes between entities. This snippets allows you to name them different in your entity forms.
Blog
Redirect anonymous users to login form in drupal 8 & 9
An often use case for dashboards or software behind a login is to redirect anonymous users to the login page. Like always, I do not want to use contributed modules for this.
Blog
Get image field with image style in preprocess_node()
This technique is used quite a lot to get an image styled url of an image in your twig file.
Blog
Blog
How to use configuration as cacheable dependencies in drupal 8 & 9
Cacheable dependencies got introduced in drupal 8 and provides great power over your caching.
Blog
Enable partial word search in database search API drupal 8 & 9
I did not expect the setting would be here, so I thought I'd share it.
Pagination
- Previous page
- Page 19
- Next page