Skip to content
Snippets Groups Projects
Commit f87730e9 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-6804: Code standards.

parent cfc57e08
No related branches found
No related tags found
1 merge request!34Feature/istwcms 6804 ibiki dashboard webform list builder
...@@ -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_render() { public function uwRender() {
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));
} }
......
...@@ -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_render(); $render = $entity_type_list->uwRender();
// 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_render(); $render = $entity_type_list->uwRender();
} }
// Render the entity list. // Render the entity list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment