Skip to content
Snippets Groups Projects
Commit b4a46340 authored by Andy Hebrank's avatar Andy Hebrank
Browse files

Issue #3374839 by ahebrank: D10 version

parent f2c66183
No related branches found
No related tags found
1 merge request!2Issue #3374839: D10 version
...@@ -2,5 +2,4 @@ name: Soft Length Limit ...@@ -2,5 +2,4 @@ name: Soft Length Limit
type: module type: module
description: Soft limits number of chars in text fields, warning the user of too long texts description: Soft limits number of chars in text fields, warning the user of too long texts
package: Fields package: Fields
core: 8.x core_version_requirement: ^9 || ^10
core_version_requirement: ^8 || ^9
...@@ -7,4 +7,4 @@ soft_length_limit: ...@@ -7,4 +7,4 @@ soft_length_limit:
css/soft_length_limit.css: {} css/soft_length_limit.css: {}
dependencies: dependencies:
- core/jquery - core/jquery
- core/jquery.once - core/once
...@@ -133,7 +133,7 @@ function soft_length_limit_field_widget_settings_summary_alter(&$summary, $conte ...@@ -133,7 +133,7 @@ function soft_length_limit_field_widget_settings_summary_alter(&$summary, $conte
/** /**
* Implements hook_field_widget_form_alter(). * Implements hook_field_widget_form_alter().
*/ */
function soft_length_limit_field_widget_form_alter(&$element, FormStateInterface $form_state, $context) { function soft_length_limit_field_widget_single_element_form_alter(&$element, FormStateInterface $form_state, $context) {
$third_party_settings = $context['widget']->getThirdPartySettings(); $third_party_settings = $context['widget']->getThirdPartySettings();
if (empty($third_party_settings['soft_length_limit'])) { if (empty($third_party_settings['soft_length_limit'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment