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
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
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
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
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.
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 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
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.
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: