Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_custom_blocks
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_custom_blocks
Commits
2777fd4e
Commit
2777fd4e
authored
7 months ago
by
Lily Yan
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-7068 Add search label for no block title
parent
63673596
No related branches found
Branches containing commit
Tags
3.0.0
Tags containing commit
1 merge request
!246
ISTWCMS-7068 Add label tag(s) to OFIS search
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Block/UwCblOfisExpertSearch.php
+6
-0
6 additions, 0 deletions
src/Plugin/Block/UwCblOfisExpertSearch.php
with
6 additions
and
0 deletions
src/Plugin/Block/UwCblOfisExpertSearch.php
+
6
−
0
View file @
2777fd4e
...
...
@@ -110,6 +110,12 @@ class UwCblOfisExpertSearch extends BlockBase implements ContainerFactoryPluginI
// Set the uuid.
$search
[
'uuid'
]
=
$this
->
configuration
[
'uuid'
];
// If there is no block title, then set the label so that
// the template will know to place a visually hidden one.
if
(
!
$this
->
configuration
[
'label_display'
])
{
$search
[
'label'
]
=
$this
->
t
(
'OFIS expert search'
);
}
// Return the build array with the template ane variables.
return
[
'#theme'
=>
'uw_block_ofis_expert_search'
,
...
...
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