Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
1a4028ee
Commit
1a4028ee
authored
1 year ago
by
narendra-drupal
Browse files
Options
Downloads
Patches
Plain Diff
addressed 40.2
parent
8e16554c
No related branches found
No related tags found
1 merge request
!5708
Resolve #2473989 "Lack of dynamic"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/views/src/Plugin/views/field/FieldLanguage.php
+2
-2
2 additions, 2 deletions
core/modules/views/src/Plugin/views/field/FieldLanguage.php
core/modules/views/src/Plugin/views/filter/LanguageFilter.php
+2
-2
2 additions, 2 deletions
.../modules/views/src/Plugin/views/filter/LanguageFilter.php
with
4 additions
and
4 deletions
core/modules/views/src/Plugin/views/field/FieldLanguage.php
+
2
−
2
View file @
1a4028ee
...
...
@@ -17,8 +17,8 @@ class FieldLanguage extends EntityField {
* {@inheritdoc}
*/
public
function
access
(
AccountInterface
$account
)
{
//
Don't
display the
field in case the site is not multilingual, because
//
there is no point in doing so
.
//
No point in
display
ing
the
language field on monolingual sites,
//
as only one language value is available
.
return
$this
->
languageManager
->
isMultilingual
()
&&
parent
::
access
(
$account
);
}
...
...
This diff is collapsed.
Click to expand it.
core/modules/views/src/Plugin/views/filter/LanguageFilter.php
+
2
−
2
View file @
1a4028ee
...
...
@@ -72,8 +72,8 @@ public function getValueOptions() {
* {@inheritdoc}
*/
public
function
query
()
{
//
Don't filter by language in case the site is not multilingual, because
//
there is no point in doing so
.
//
No point in displaying the language filter on monolingual sites,
//
as only one language value is available
.
if
(
!
$this
->
languageManager
->
isMultilingual
())
{
return
;
}
...
...
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