Drupal 8

Drupal 8

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...
I've been recently searching for a Drupal 8 module that can integrate and display my Playstation profile but I can't find one. So, I created one. Feel free to use it on your own Drupal 8 sites. Here's how: Manual Download Download the Drupal 8 module https://www.drupal.org/project/psn_public...