Skip to content
Snippets Groups Projects
Commit 09a95969 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Resolve #3427215 "Address phpstan and"

parent 71c03795
No related branches found
No related tags found
1 merge request!15Resolve #3427215 "Address phpstan and"
Pipeline #116878 passed
Elementtype
GABB
gabb
getelementtype
getwrapperelement
rudiedirkx
Wrapperelement
......@@ -28,6 +28,7 @@ class Fieldset extends FieldPluginBase {
$parents[] = $parent;
$current_field = $parent;
}
return $parents;
}
......
......@@ -48,7 +48,7 @@ class RowFieldset {
* @param string $name
* Method's name.
*/
public function __isset($name) {
public function __isset(string $name) {
return TRUE;
}
......@@ -58,7 +58,7 @@ class RowFieldset {
* @param string $name
* Method's name.
*/
public function __get($name) {
public function __get(string $name) {
$method_name = 'get' . Unicode::ucwords($name);
if (is_callable($method = [$this, $method_name])) {
return call_user_func($method);
......@@ -118,7 +118,7 @@ class RowFieldset {
if ($this->handler->options['collapsed'] && $this->getWrapperType() != 'div') {
$element['#attributes']['class'][] = 'collapsed';
}
// @phpstan-ignore-next-line
return \Drupal::service('renderer')->render($element);
}
......
......@@ -94,7 +94,7 @@ function views_fieldsets_views_ui_display_tab_alter(&$build, ViewUI $ui_view, $d
if (Fieldset::isFieldsetView($view)) {
$fieldsets = Fieldset::getAllFieldsets($view);
foreach ($build['details']['columns']['first']['fields']['fields'] as $field_name => &$renderable) {
// Noticable fieldsets.
// Noticeable fieldsets.
if (isset($fieldsets[$field_name])) {
$renderable['#class'][] = 'views-fieldsets-fieldset';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment