Features documentation

The original page : https://www.drupal.org/docs/8/modules/features

The Features module is a toolset for building well designed Drupal 8 features and distributions.

Getting started using Features

Developing for Features

See the section on developing for Features 3.x.

Contributing

Help is very welcome in all areas. If you have ideas feel free to post to the Features issue queue or reach out directly to one of the maintainers.

Current maintainers of Features for Drupal 8 are:

Thanks!

What's new in Features for Drupal 8?

For Drupal 8, we've rewritten Features from the ground up.

Principles

Features is guided by a set of principles including interoperability and working with the site as a whole.

Interoperability features

The default settings of Features should facilitate creating and maintaining interoperable configuration modules and distributions.

Installing and using features modules

Features modules are regular Drupal modules that contain packaged configuration for installation on multiple sites.

Features and configuration staging

There are several different strategies for using features in combination with staging configuration between instances of a site.

Complementary modules

Several modules interact with or extend the functionality of Features.

Building features

To get started, install Features and its dependency, Configuration Update Manager.

Features building workflow

This page introduces the workflow for generating and editing sets of features.

Creating and configuring bundles

To customize configuration packaging, site admins can create and configure features bundles.

Package assignment plugins

Assignment plugins control the way that features are generated and what configuration is assigned to them.

Generate features

Site admins can preview the features that will be generated and download them.

Creating and editing individual features

As well as automatic packaging, Features also supports manually creating and editing feature modules.

Feature states, diffs, and reverting

Features provides information on the status and state of available features and their configuration items.

Drush support

Features 3.x supports a set of Drush commands.

Building a distribution with Features 3.x

The main use case for Features 3.x is to assist with building and maintaining well designed and interoperable Drupal distributions.

Gaps

There's lots left to do, and also some areas that Features previously handled that now won't fit.

Developing for Features 3.x

The most straightforward way to extend the module's functionality is by creating a new plugin.

Further reading and presentations

Here is a list of further reading on Features in Drupal 8.

Settings provided by other modules

Provides guidelines on how to override module-provided settings or configuration.

Introduction

One of the greatest improvements added in Drupal 8 was the Configuration Management (CM) system. Deploying a site from one environment to another involves somehow merging the user-generated content on the Production site with the developer-generated configuration from the Dev site. In the past, configuration was exported to code using the Features module, which I am a primary maintainer for.

Using the D8 Configuration Management system, configuration can now be…

more…

Dans Drupal 8, Configuration Management fait partie de Core plutôt que de s'appuyer sur le module Features. Cependant, dans la pratique, il reste encore de nombreux défis à relever.
Dans son exposé DrupalCon Nashville, Advanced Configuration Management dans Drupal 8, Mike Potter, Architecte logiciel Phase2, discute des différents modules utiles à la gestion de la configuration et fournit des exemples de cas d'utilisation réels où ces modules sont nécessaires, ainsi que:

  •      Comment gérer la configuration spécifique à l'environnement ou multi-site (Config Split)
more…

We set ourselves the goal of finalizing the translation of the module for Drupal 8, but several concepts needed clarification and several terms, to be put in context to be explicit.

  • Features : We translated "feature" to "feature" and kept the module name as is, with a capital letter. We have sometimes specified "the Features module".
  • Package :
  • Bundle :
  • Configuration :
  • Fonctionality :
  • Workflow :
more…

Settings provided by other modules

 

En règle générale, nous ne pouvons exporter vers des fonctionnalités standard que la configuration personnalisée que nous avons nous-mêmes créée, telle qu'un mode d'affichage ou un champ. Si nous configurons en utilisant un formulaire fourni par un module, cette configuration sera déjà fournie par le module. Une indication que cela peut se produire est que le nom de la configuration inclut le nom d'un autre module, tel que realname.settings.ym. Un autre indice est que la configuration n'apparaît pas par défaut comme étant disponible pour l'ajout à votre fonctionnalité (c'est-à-dire que…

more…

Further reading and presentations

 
Les liens suivants fournissent des informations supplémentaires sur les fonctionnalités pour Drupal 8.
more…

Developing for Features 3.x

 

Features 3.x supports two types of plugins. The most straightforward way to extend the module's functionality is by creating a new plugin or extending an existing one.

Plugins have access to the public methods declared in FeaturesManagerInterface.

Assignment plugins

Assignment plugins control the configuration packaging process. They can do tasks including:

  • Create a package. See FeaturesManagerInterface::initPackage().
  • Assign…
more…

Gaps

 

There's lots left to do, and also some areas that Features previously handled that now won't fit. Here are some issues in the Features issue queue that relate to what Features doesn't do.

more…

Building a distribution with Features 3.x

 

Le cas d'utilisation principal de Features 3.x est d'aider à construire et maintenir des distributions Drupal bien conçues et interopérables.

Voir également la page sur l'interopérabilité des fonctionnalités.

Construction de site pour l'empaquetage

Les conseils suivants vous aideront à vous assurer que la configuration de votre site est prête à être correctement empaquetée.

  • Avant de commencer à développer une nouvelle fonctionnalité, sélectionnez un nom système à utiliser. Par exemple, pour une fonctionnalité liée à un événement,…
more…
Categories: 8, Portabilité

Support Drush

 

Features 3.x supports the following Drush commands:

  • features-add (fa, fe) Add a config item to a feature package.
  • features-components (fc) List features components.
  • features-diff (fd) Show the difference between the active config and the default config stored in a feature package.
  • features-export (fex, fu, fua, fu-all) Export the configuration on your site into a custom module.
  • features-import (fim, fr) Import a module config into your site.
more…
Categories: 8, Portabilité

Etats de fonctionnalité, diffs et inversion

 

The main Features administration page at Administration > Configuration > Development > Features (admin/config/development/features) provides information on the status and state of available features and their configuration items.

Feature statuses

Possible statuses for a feature are:

  • Not exported: the feature has been detected but has not yet been exported (at least, to this site).
  • Uninstalled: the feature is present in the site's file system but is not installed.
  • Enabled:…
more…
Categories: 8, Portabilité