Installation¶
Requirements¶
| Requirement | Value | Source |
|---|---|---|
| Drupal core | ^10.2 \|\| ^11 \|\| ^12 |
core_version_requirement in formfactorykits.info.yml |
| PHP | 8.1 or newer in practice (the code uses static return types, union types and match) |
src/ |
| Form Factory module | drupal/formfactory ^2.1@beta |
composer.json |
| Kits module | kits:kits |
dependencies in formfactorykits.info.yml |
drupal/formfactory in turn requires drupal/kits ^2.0@beta, and drupal/kits
requires drupal/query ^2.0@beta. All three are separate contributed projects
by the same maintainer, and all of them are currently beta releases.
Install with Composer¶
Because the dependency chain is in beta, your project must accept beta
releases for these packages. Either set "minimum-stability": "beta" with
"prefer-stable": true in your project's composer.json, or require the
packages with an explicit stability flag:
composer require 'drupal/formfactorykits:^2.1@beta' \
'drupal/formfactory:^2.1@beta' \
'drupal/kits:^2.0@beta' \
'drupal/query:^2.0@beta'
Enable the module¶
drush en formfactorykits
Drush enables the dependencies (formfactory, kits and query) as well.
You can also enable Form Factory Kits on the Extend page
(/admin/modules); it is listed in the Kits package.
Services you get¶
| Service ID | Class | Provided by |
|---|---|---|
formfactorykits |
Drupal\formfactorykits\Services\FormFactoryKitsService |
this module (formfactorykits.services.yml) |
formfactory |
Drupal\formfactory\Services\FormFactoryService |
the Form Factory module |
kits |
Drupal\kits\Services\KitsService |
the Kits module |
Next: read Concepts to see how these pieces fit together.