Drupal 8

[Drupal] How can we programmatically create user roles in Drupal 8?

November 03, 2016 - 16:51

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.

[SOLVED] How to include third party libraries in Drupal 8 for custom modules?

September 05, 2016 - 11:44

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.

[Drupal 8] How to send a mail programmatically in Drupal 8

August 24, 2016 - 18:03

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.

[Drupal-8] How to send a mail programmatically in Drupal 8

August 17, 2016 - 18:37

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.

Drupal: Giving a new dimension to Omnichannel marketing

Businesses are engaging in different innovative strategies to develop and deliver various digital marketing experiences across the market. Marketing strategies are spirally evolving. From a personal door to door marketing concept, the strategy has moved to wider mass marketing while delivering personalized content. Omnichannel marketing is about providing this experience consistently over all channels.

Drupal 8: An agile and strategic digital marketing platform

Digital trends are evolving and transforming quite rapidly. Digital marketers can monitor what is being viewed, for how long and how often. Being able to analyze what content works, what doesn’t and see the sale conversions should help in making a strategic marketing plan that is agile. Drupal known for its flexibility and scalability, is a great tool for building an amazing digital marketing platform.

Why is Drupal the best choice for Responsive/Adaptive Web Design?

Responsive sites and adaptive sites are the same in the sense that they both change appearance based on the browser environment they are being viewed on. One of the major challenges in creating a web design is how to create one that has lasting value, at least for a planned period of time. It is more likely that a first time visitor/customer may not be familiar with your products or services. There are other possibilities that your visitor is in a real hurry, or they’re on an iPad, at a coffee shop. Or maybe they’re on some device for which a website hasn’t been planned yet.

Pages