drupal 8

How to Display a Cookie Compliance Banner in a Drupal 8 Site

Tags:

Session problem Drupal 8.6.13

Adding Twig Template Suggestions for Form Elements

/**
* @param $suggestions
* @param array $variables
*/
function mytheme_theme_suggestions_input_alter(&$suggestions, array $variables) {
$element = $variables['element'];

if (isset($element['#attributes']['data-twig-suggestion'])) {
$suggestions[] = 'input__' . $element['#type'] . '__' . $element['#attributes']['data-twig-suggestion'];
}
}

How to include javascript on single pages in Drupal 8 in a way that is amenable to scale.

12

Following Steps will make working with External JavaScript libraries in Drupal 8 absolutely clear (including how to conditionally load it in specific pages):

Step 1: Place the JavaScript file in your theme or module inside a folder called js. After this step your folder structure must look like :

my-theme/js/my-script.js
Step 2: If your theme already has a my-theme.libraries.yml file open it, if not create it.

In Drupal 8 Libraries are simply collections of CSS or JS files bundled together under a uniquely identified library name.

Drupal commerce 2 drupal 8 Order workflow

Composer and Drupal are still strange bedfellows

Tips for Managing Drupal 8 projects with Composer

Getting Drupal 8 field values in Twig

TWIG FOR DRUPAL 8 DEVELOPMENT: TWIG TEMPLATING

Get field value from referenced entity in twig loop

view_mode variable in node twig

Entity Reference Display

Tags:

allow an Editor Choose the View Mode of an Entity Reference Field in Drupal 8

Tags:

Discover colorbox or flexslider library when installed with composer

Install drush 9 with composer - for drupal installed by composer

Update core via Composer for drupal project

Menu Link Attribute not working in Barrio

Tags:

Composer Repository Schema

Tags:

Show related content based on shared reference entity

Force SSL for Drupal 8

Tags:

How to add Google Fonts to Drupal 8 theme, the PROPER way

Tags:

Entity clone permission

Tags:

Mismatched entity and/or field definitions field needs to be updated.

Tags:

Use only parent terms in view

Views contextual filter with argument using URL alias

Notice: Undefined variable: pages_prefix in template_preprocess_quicktabs_view_quicktabs() (line 83 of modules/contrib/quicktabs/quicktabs.theme.inc).

Tags:

Twig values

Link Target Open in new window

Tags:

Drupal 8 – Formatting a Date Field in Twig

Patch for fieldset views empty handler error

Tags:

Pages

Subscribe to RSS - drupal 8