Skip to content
Snippets Groups Projects

Incompatible with Drupal 10.3 and higher

Closed Ken Rickard requested to merge issue/sdc_styleguide-3448760:3448760 into 1.0.x
Files
2
@@ -3,12 +3,11 @@
@@ -3,12 +3,11 @@
namespace Drupal\sdc_styleguide\Controller;
namespace Drupal\sdc_styleguide\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Link;
use Drupal\Core\Link;
use Drupal\Core\Serialization\Yaml;
use Drupal\Core\Serialization\Yaml;
 
use Drupal\Core\Theme\ComponentPluginManager;
use Drupal\Core\Url;
use Drupal\Core\Url;
use Drupal\sdc\ComponentPluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\Finder;
@@ -164,8 +163,8 @@ final class StyleGuideController extends ControllerBase {
@@ -164,8 +163,8 @@ final class StyleGuideController extends ControllerBase {
return [
return [
'#type' => 'component',
'#type' => 'component',
'#component' => "{$view_type_instance}:$view_component",
'#component' => "{$view_type_instance}:$view_component",
'#props' => $demo['properties'],
'#props' => $demo['properties'] ?? [],
'#slots' => array_map(fn ($x) => ['#type' => 'inline_template', '#template' => $x], $demo['slots']),
'#slots' => array_map(fn ($x) => ['#type' => 'inline_template', '#template' => $x], $demo['slots'] ?? []),
];
];
}
}
Loading