In Drupal 8 we can load an image using image style in a custom function using the file id of the image. For this first, we have to create an image style by configuration or create a config file for the same.
In today’s digital world, one size fits all marketing is no longer relevant, instead, the focus is on contextual marketing and personalized customer experience across the entire sales funnel through digital platforms. Many businesses are working hard trying to build their customer engagement, but often fail because they are focused on any and all kind of interactions without considering the value that is added through the relationship. When a business uses Drupal 8 as its platform of choice, it takes ownership of the experience that is being delivered to customers.
Patternlab is a dynamic organizational and prototyping tool for Drupal theming. By theming with pattern lab, your custom theme allows us to manage and build components in accordance with the required workflow using atomic design concepts1.
If you are a Drupal enthusiast, business owner, consultant or anyone one who loves web technology, this infographic will be useful for you. It explains the capabilities of Drupal in various aspects like types of project, integration capabilities, database choices, and interoperability. This infographic can be used as a quick check sheet for driving conclusions on technology choices.
Authors: Anoop John, Vimal Joseph, Thomas P. Thomas
E-governance has grown and developed rapidly reflecting the social, economic and cultural changes happening. The increased usage of the web by the citizens, the ease of use, the ubiquity of digital connectivity, IoT have allowed for the emergence of a number of applications for Government to Citizen, Government to Government and Government to Business Services. Leveraging the web for citizen engagement, delivery of government services to citizens, businesses and inter-government departmental services is key to strengthening the e-governance capability of a government.
A patch is a small file which shows what was changed in a repository. It shows the new changes in an existing file, details of the new files in the current directory, file deletion details etc. A patch file can be pushed to the git repository so that it is useful in the future for updating the changes in the corresponding file.
Everyone knows Drush is a very important tool in Drupal development, to execute things faster and to manage Drupal websites remotely. Drupal specifically built its shell function to update its configurations, managing modules, running drupal updates, etc.
In one of my project I want to create user roles programmatically and the role should be enable and disable while module install and uninstall process. So first of all I need to create a YAML file based on the user role name with necessary definitions. The name of the YAML file should be the format user.role.sample.yml. Here sample is my user role id. To make the role enable and disable while module installation and uninstall we have to add dependency with enforced property.
On 31st October 2016, Prime Minister of India, Sri Narendra Modi inaugurated the digital exhibition “Uniting India: Sardar Patel” including the web portal, http://sardarpatel.nvli.in/ at Pragati Maidan in New Delhi.
I want to programmatically create taxonomy vocabulary and it should be enabled and disabled while module install and uninstall process. So first of all I have created a YAML file based on the vocabulary name with necessary definitions.
In Drupal 8, third party libraries are downloaded and managed via composer. In Drupal each project must contain only one vendor folder. Composer Manager allows single vendor/directory shared across all modules which prevents code duplication and version mismatches by merging the requirements of all the found modules into the consolidated composer.json file.
This article covers, how to send email programmatically in your Drupal 8 site. There are two main steps to send an email using Drupal 8. First we need to implement hook_mail() to define email templates and the second step is to use the mail manager to send emails using these templates. Let's see an example for sending an email from the custom module, also the following name spaces.
In one of my Drupal 8 work I needed to configure SMTP using swiftmailer Module. The module extends the basic mail sending functionality which is provided by Drupal by delegating all mail handling to Swift Mailer library. This library provides features, such as :