Skip to main content
PK's Diary

Main navigation

  • Home
  • Reposts
  • Stories
  • Articles
  • Notes
  • About

Breadcrumb

  1. Home

Drupal

Drupal 8 Views Twig Entity Translation

Accessing Translated Entity in Views Twig | Drupal 8

Though ideally if we use the views correctly and override them well, Drupal Views itself take care of getting the translated version as per configurations of the view. For details check this: EntityField::getValue

Tags

  • Drupal
  • Drupal Planet
  • Twig
Extra Information

Storing extra information for any entity in Drupal

A lot of times we come across a requirement where we need to manage some additional data for the Drupal entities. Now, if we think simply, the solution is to create fields .. right... easy and best, that's what Drupal is all about, entities and their properties as fields. But, there can be scenarios where the entity is not fieldable (as of now).

Tags

  • Drupal
  • Drupal Planet
Twig global variable

Making a variable available (as global) in all twig files in Drupal

Most of us know, the ideal way of making a variable available in a specific twig file is to use hook_preprocess_HOOK. But what if we have a requirement that we need a kind of global variable that should be accessible in any twig file. So, that we are able to use it wherever we want to, without additional pain.

The best part of Drupal is, everything is possible. But at the same time, there is a trick, you always have more than one way of doing things. And now it's in your hands to pick up the best suitable performant way for your solution.

Tags

  • Drupal
  • Twig
  • Drupal Planet
Performance

How to check if Memcache, opcache or varnish is functional with the Drupal 8 application?

A successful application is always defined by its performance and Security besides the proper operational functioning. Drupal 8 can make use of Memcache, opcache and varnish to significantly reduce the load on the servers and greatly improve the performance. After installing and setting up these performance improvement tools it’s important to know if they are actually working and improving the application performance. Let’s explore the validation ways for each of them:

Tags

  • Drupal
Acquia Backend Specialist Certification

Acquia Backend Specialist Certification Guide

Recently completed Acquia Backend Specialist Certification thought to share my thoughts around this certification exam that might help the aspiring ones. While preparing for this exam, I had heard that this is the toughest exam out of all the Acquia Drupal Certifications and in my opinion, this rumour is true.

Tags

  • Drupal
  • Drupal Certification
  • Acquia Certification
  • Backend Specialist
  • Drupal Planet
Drupal

Events - Object Oriented Version of Hooks | Speaker | Drupal Camp Pune 2017

Overview

Drupal 8 uses events to allow modules and various subsystems to communicate with one another in an object-oriented manner. Understanding how the Event API works is critical knowledge for all module developers.

Tags

  • Drupal
Drupal Global Training Day

Speaker | Global Training Day | SICSR Pune | 2016

Drupal Global Training Days is an exciting initiative from the Drupal community to introduce new and beginning users to Drupal

This Training was centered around OPEN SOURCE : Drupal 8 Content Management System . For reference and proper understanding of the trainees, the training was based on Online Profile/CV (website) Building using Drupal 8. 

Around 80+ Students attended this session.

Tags

  • Drupal
  • Open Source

Acquia Front-End Specialist Exam Preparation Pointers

 

Tags

  • Acquia Certification
  • Drupal
  • Drupal Certification
  • Frontend Specialist

PHP function in twig - EASY! Ever tried TWIG in PHP function?

I was working on issue queue of views extras module and came across a requirement: Add twig support: https://www.drupal.org/project/views_extras/issues/2948514. For a moment I was helpless, I mean I always had the requirement to use PHP function in twig but never thought in the reverse direction and to resolve that issue I need to know how we can support twig variables in PHP.

Tags

  • Drupal
  • Twig

Lets override Drupal services (with and without overriding arguments) | Drupal 8

Service-based architecture is one of the major strength of Drupal 8. Drupal core and contrib provide lots of services to be used by other services, plugins or any other function. The flexible nature of Drupal allows overriding of services.

We can have different scenarios:

Tags

  • Drupal

Pagination

  • 1
  • Previous page
Drupal

Explore topics

TwigQED42Acquia CertificationDrupal PlanetDrupal CertificationThinkingDrupalOpen SourceLifeBackend Specialist
more tags

Quick Notes

Accessing Translated Entity in Views Twig | Drupal 8
Making a variable available (as global) in all twig files in Drupal
Data Structures and Algorithms - Solved in Javascript | Geeksforgeeks
Create alias for frequently used commands
Acquia Front-End Specialist Exam Preparation Pointers

Recent Stories around me

Software Engineer Interview Experience with Glovo
Why Amazon is better than Flipkart - Indian ecommerce market
Acquia Certified Drupal 8 Grand Master
Seminar at DCRUST on Open Source as Career
A Walk to Remember | June 2015 - August 2018 | QED42

Recent write-ups | PK's pen

How to check if Memcache, opcache or varnish is functional with the Drupal 8 application?
Getting started with ReactJS & Drupal (Fully-Decoupled)
Extending Drupal Translations for Custom Entity in Drupal 7
Google Assistant Integration with Drupal
Art of writing template files - Drupal 8
PK's Diary
Powered by Drupal