Closed (fixed)
Project:
Clientside Validation
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Nov 2015 at 08:14 UTC
Updated:
12 Aug 2016 at 11:24 UTC
Jump to comment: Most recent
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_alterto 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_alterto specify which js files to add in the plugin definition of each plugin.Comment #6
attiks commentedCan we add a line in the status report for installing the lib
Comment #7
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 commented