Drupal 8

Drupal 8

This tutorial applies to docker4drupal by wodby. PART 1: Install and configure Drupal 8 Search API Solr module Install Search API Solr module. After installing the module, configure Solr server. Go to Home > Administration > Configuration > Search and metadata > Search API Create a new server or...
This is how you can dynamically change a multi select entity field maximum number of selected items programmatically. //The sample codes below will get an entity form and render the entity form fields to a custom form. // Create the entity $entity = $this->orderItemStorage->create([ 'title' =>...
In this tutorial, I will guide you how to show Drupal's progress/throbber icon on your button that call the Views AJAX RefreshView. Views Configuration Make sure your view is using AJAX. To do that, set the "Advanced > Use Ajax" on your view. HTML Button <a href="#" class="btn btn-default reload...
Create your Event Subscriber Create your module's services yml file and declare the event subscriber services: mymodule.autologin: class: Drupal\mymodule\EventSubscriber\AutoLogin tags: - {name: event_subscriber} Save this as mymodule.services.yml inside mymodule folder Create the actual class used...
Layout Builder + Display Suite - Drag & Drop Issue By default, Display Suite layouts are using it's own region attributes like below: {{ title_suffix.contextual_links }} <{{ outer_wrapper }}{{ attributes.addClass('row', 'clearfix') }}> <{{ top_wrapper }}{{ top_attributes.addClass('col-12', 'region...