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.
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.
Chosen is one of best jQuery library available to design HTML drop-down.
Here's how we can auto open chosen drop-down using small code snippet in jQuery. Below example uses the country drop-down.
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:
As a developer we always been into position where we need to write a custom script which bootstrap's Drupal Core from code and do some operations. This is pretty straight forward when working single site.