Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_dashboard
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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_dashboard
Commits
f87730e9
Commit
f87730e9
authored
1 year ago
by
Igor Biki
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6804: Code standards.
parent
cfc57e08
No related branches found
No related tags found
1 merge request
!34
Feature/istwcms 6804 ibiki dashboard webform list builder
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Handler/UWWebformEntityListBuilder.php
+2
-2
2 additions, 2 deletions
src/Handler/UWWebformEntityListBuilder.php
src/Plugin/Block/FormsListBlock.php
+2
-2
2 additions, 2 deletions
src/Plugin/Block/FormsListBlock.php
with
4 additions
and
4 deletions
src/Handler/UWWebformEntityListBuilder.php
+
2
−
2
View file @
f87730e9
...
@@ -5,7 +5,7 @@ namespace Drupal\uw_dashboard\Handler;
...
@@ -5,7 +5,7 @@ namespace Drupal\uw_dashboard\Handler;
use
Drupal\webform\WebformEntityListBuilder
;
use
Drupal\webform\WebformEntityListBuilder
;
/**
/**
* Class UWWebformEntityListBuilder
* Class UWWebformEntityListBuilder
.
*
*
* Extends functionality by updating one method.
* Extends functionality by updating one method.
*/
*/
...
@@ -18,7 +18,7 @@ class UWWebformEntityListBuilder extends WebformEntityListBuilder {
...
@@ -18,7 +18,7 @@ class UWWebformEntityListBuilder extends WebformEntityListBuilder {
* matches one webform. This update will remove webform id, and
* matches one webform. This update will remove webform id, and
* use filter to display one result, which creates redirect otherwise.
* use filter to display one result, which creates redirect otherwise.
*/
*/
public
function
uw
_r
ender
()
{
public
function
uw
R
ender
()
{
if
(
$this
->
keys
&&
preg_match
(
'#\(([^)]+)\)$#'
,
$this
->
keys
,
$match
)
&&
!
empty
(
$match
[
0
]))
{
if
(
$this
->
keys
&&
preg_match
(
'#\(([^)]+)\)$#'
,
$this
->
keys
,
$match
)
&&
!
empty
(
$match
[
0
]))
{
$this
->
keys
=
trim
(
preg_replace
(
'#\(([^)]+)\)$#'
,
''
,
$this
->
keys
));
$this
->
keys
=
trim
(
preg_replace
(
'#\(([^)]+)\)$#'
,
''
,
$this
->
keys
));
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Block/FormsListBlock.php
+
2
−
2
View file @
f87730e9
...
@@ -99,13 +99,13 @@ class FormsListBlock extends BlockBase implements ContainerFactoryPluginInterfac
...
@@ -99,13 +99,13 @@ class FormsListBlock extends BlockBase implements ContainerFactoryPluginInterfac
}
}
// Get the render array from the entity list.
// Get the render array from the entity list.
$render
=
$entity_type_list
->
uw
_r
ender
();
$render
=
$entity_type_list
->
uw
R
ender
();
// Remove the category filer.
// Remove the category filer.
unset
(
$render
[
'filter_form'
][
'filter'
][
'category'
]);
unset
(
$render
[
'filter_form'
][
'filter'
][
'category'
]);
}
}
else
{
else
{
$render
=
$entity_type_list
->
uw
_r
ender
();
$render
=
$entity_type_list
->
uw
R
ender
();
}
}
// Render the entity list.
// Render the entity list.
...
...
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