Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soft_length_limit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
soft_length_limit
Commits
b4a46340
Commit
b4a46340
authored
1 year ago
by
Andy Hebrank
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3374839
by ahebrank: D10 version
parent
f2c66183
No related branches found
No related tags found
1 merge request
!2
Issue #3374839: D10 version
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
soft_length_limit.info.yml
+1
-2
1 addition, 2 deletions
soft_length_limit.info.yml
soft_length_limit.libraries.yml
+1
-1
1 addition, 1 deletion
soft_length_limit.libraries.yml
soft_length_limit.module
+1
-1
1 addition, 1 deletion
soft_length_limit.module
with
3 additions
and
4 deletions
soft_length_limit.info.yml
+
1
−
2
View file @
b4a46340
...
@@ -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
This diff is collapsed.
Click to expand it.
soft_length_limit.libraries.yml
+
1
−
1
View file @
b4a46340
...
@@ -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
This diff is collapsed.
Click to expand it.
soft_length_limit.module
+
1
−
1
View file @
b4a46340
...
@@ -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'
]))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment