Order and sort items with tabledrag
Draggable table Form Example
Step 1 : Form build
Draggable table Form Example
Step 1 : Form build
Example: settings for local environnement.
Create the local settings file : local.services.yml the add to local settings.php file
# Local service config
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/default/local.services.yml';
Step 1 : Add the package cweagans/composer-patchescomposer require cweagans/composer-patches
Doc : https://www.drupal.org/docs/drupal-apis/form-api/conditional-form-fields
States that can be applied to a form field element:
Add following packages to composer.json file next to drupal repository