Skip to main content

Drupal 9 twig node snippets

Here are some useful twig snippets that are very useful every now and then

// Returns the rendered url of an internal or external link field
{% set field_url = node.field_url.get(0).getUrl().toString() %}

 

php theme

Latest Articles

Controlling ckeditor styling options with hook_editor_js_settings_alter admin_pixelthi… Thu, 05/16/2024 - 10:49 Controlling ckeditor styling options with hook_editor_js_settings_alter

Controlling ckeditor styling options with hook_editor_js_settings_alter

php hook hook_editor_js_settings_alter hook_field_widget_single_[WIDGET_TYPE]_form_alter
How to remove a primary tab from the admin menu in drupal 10 admin_pixelthi… Wed, 03/27/2024 - 17:39 How to remove a primary tab from the admin menu in drupal 10

How to remove a primary tab from the admin menu in drupal 10

hook
Upgrading Drupal 9 Modules for Drupal 10: A Simple Guide admin_pixelthi… Tue, 09/05/2023 - 14:18 Upgrading Drupal 9 Modules for Drupal 10: A Simple Guide

Upgrading Drupal 9 Modules for Drupal 10: A Simple Guide

composer drupal9 drupal10