You are here

PatternSettingsLayout.php in UI Patterns Settings 8

Same filename and directory in other branches
  1. 8.2 src/Plugin/Layout/PatternSettingsLayout.php

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.
 *
 * @package Drupal\ui_patterns_settings\Plugin\Layout
 */
class PatternSettingsLayout extends PatternLayout {

  /**
   * {@inheritdoc}
   */
  public function build(array $regions) {
    $build = parent::build($regions);
    $configuration = $this
      ->getConfiguration();
    if (isset($configuration['pattern']['settings'])) {
      $build['#settings'] = $configuration['pattern']['settings'];
    }
    return $build;
  }

}

Classes

Namesort descending Description
PatternSettingsLayout Class PatternSettingsLayout.