PatternSettingsLayout.php in UI Patterns Settings 8
File
src/Plugin/Layout/PatternSettingsLayout.php
View source
<?php
namespace Drupal\ui_patterns_settings\Plugin\Layout;
use Drupal\ui_patterns_layouts\Plugin\Layout\PatternLayout;
class PatternSettingsLayout extends PatternLayout {
public function build(array $regions) {
$build = parent::build($regions);
$configuration = $this
->getConfiguration();
if (isset($configuration['pattern']['settings'])) {
$build['#settings'] = $configuration['pattern']['settings'];
}
return $build;
}
}