Skip to main content
Home
Toggle menu

Main navigation

  • Home
  • Blogs

Drupal 8

Drupal 8 vhost configuration for NGINX - Part 2

In previous part of nginx vhost configuration, we've configured nginx to serve Drupal site directly (i.e.
  • Read more about Drupal 8 vhost configuration for NGINX - Part 2

Drupal 8 vhost configuration for NGINX - Part 1

Drupal support majority of web-servers available in the market.
  • Read more about Drupal 8 vhost configuration for NGINX - Part 1

Check if service exists in Drupal 8

In Drupal 8, a service is any object managed by th
  • Read more about Check if service exists in Drupal 8

Check if Module is installed - Drupal 8

Using below example we can check if module is installed or not :
  • Read more about Check if Module is installed - Drupal 8

Programmatically delete configuration - Drupal 8

By default Drupal stores all configuration into database. Below example shows how to remove / delete configuration object of 'automated_cron.settings', i.e. remove cron settings.
  • Read more about Programmatically delete configuration - Drupal 8

Programmatically install / uninstall module - Drupal 8

Modules are used to extend and customize Drupal Core. To install module normally we can navigate to "Admin => Extend" link in toolbar. Like older versions of Drupal, Drupal 8 doesn't allow modules to be enable / disable.
  • Read more about Programmatically install / uninstall module - Drupal 8

Programmatically put site in maintenance mode - Drupal 8

In Drupal 8, the Site Maintenance status is stored in State API. To put Site in Maintenance mode or to get Site out of Maintenance mode, we can use following code snippet:
  • Read more about Programmatically put site in maintenance mode - Drupal 8

Get or Set module weight - Drupal 8

In Drupal 8, module's weight is stored into ConfigFactory. Here's how to get or set module weight. Get module weight:
<?php
  $extension_config = \Drupal::configFactory()->getEditable('core.extension');
  • Read more about Get or Set module weight - Drupal 8

Redirect User after login - Drupal 8

When building sites, many client wants users to get redirected to particular page (like Site Home Page) or page based on User Roles.
  • Read more about Redirect User after login - Drupal 8

Drupal 8 Preview: What to Expect by webchick

Recently Acquia held a webinar about "Drupal 8 Preview: What to Expect".
  • Read more about Drupal 8 Preview: What to Expect by webchick

Monthly archive

  • March 2019 3
  • September 2018 1
  • July 2018 2
  • April 2018 1
  • August 2017 1

Pagination

  • Next page ››
sfy39587stp18