Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
typed_data
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
typed_data
Merge requests
!33
Issue
#3477178
by tr: Parameter typing in DataFilters
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3477178
by tr: Parameter typing in DataFilters
issue/typed_data-3477178:3477178-parameter-typing-in
into
2.1.x
Overview
0
Commits
2
Pipelines
3
Changes
12
Merged
Tim Rohaly
requested to merge
issue/typed_data-3477178:3477178-parameter-typing-in
into
2.1.x
8 months ago
Overview
0
Commits
2
Pipelines
3
Changes
12
Expand
Closes
#3477178
0
0
Merge request reports
Compare
2.1.x
version 2
fe3d905e
8 months ago
version 1
3863d5ce
8 months ago
2.1.x (base)
and
latest version
latest version
fe3d905e
2 commits,
8 months ago
version 2
fe3d905e
2 commits,
8 months ago
version 1
3863d5ce
1 commit,
8 months ago
12 files
+
33
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/TypedDataFilter/CountFilter.php
+
3
−
1
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\typed_data\Plugin\TypedDataFilter
;
use
Drupal\Core\Render\BubbleableMetadata
;
@@ -41,7 +43,7 @@ class CountFilter extends DataFilterBase {
/**
* {@inheritdoc}
*/
public
function
filter
(
DataDefinitionInterface
$definition
,
$value
,
array
$arguments
,
BubbleableMetadata
$bubbleable_metadata
=
NULL
)
{
public
function
filter
(
DataDefinitionInterface
$definition
,
$value
,
array
$arguments
,
?
BubbleableMetadata
$bubbleable_metadata
=
NULL
)
{
return
mb_strlen
(
$value
);
}
Loading