Using Features 3.0
Many Drupal users create custom modules to provide specific sets of features that they can reuse across multiple sites. In fact, there is a module for the sole purpose of providing a means to export configuration and create modules that provide features. This is how the Features module received its name, in fact.
The Features module has two submodules. The main Features module provides all the functionalities. The Features UI module provides a user interface to create and manage features.
We will use Features to export a module with a configuration that contains the default page and article content types provided by the standard installation so that they can be used on other installation profiles.
How to do it...
- First, we will install the Features module using Composer, which will also download its dependency, the Configuration Update Manager module:
$ cd /path/to/drupal8 $ composer require drupal/features
- Go to
Extend
and install theFeatures UI
module, confirming the requirements...