Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2610804: Drupal 8 port
Follow-up to #2610804: Drupal 8 port
Comments
Comment #2
Jelle_SHow do we figure out which js files should be attached?
For example:
if this submodule is enabled, it should attach the jQuery Validate library.
Contrib might define some custom validation methods that are in different js files.
Contrib can use
\Drupal::moduleHandler()->moduleExists($module);
to determine what validation plugin module is enabled to determine which js file to add.Should we:
hook_clientside_validation_validator_info_alter
to specify which js files to add in the plugin definition of each plugin.Comment #3
Jelle_S5. Let contrib use
hook_clientside_validation_validator_info_alter
to specify which js files to add in the plugin definition of each plugin.Comment #6
attiks CreditAttribution: attiks at Attiks commentedCan we add a line in the status report for installing the lib
Comment #7
attiks CreditAttribution: attiks at Attiks commentedand maybe add a readme
Comment #8
Jelle_SNot sure if the status report is still needed since we use a cdn version if the lib is not installed. Readme was added a while ago too.
Comment #9
attiks CreditAttribution: attiks at Attiks commented