You are here

public function BootstrapLayout::__construct in Bootstrap Layouts 8.4

Same name and namespace in other branches
  1. 8.5 src/BootstrapLayout.php \Drupal\bootstrap_layouts\BootstrapLayout::__construct()

BootstrapLayout constructor.

Parameters

string $id: The layout identifier.

array $regions: The layout regions.

array $settings: The layout settings.

string $path: The path to the layout.

File

src/BootstrapLayout.php, line 39

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

public function __construct($id, array $regions = [], array $settings = [], $path = NULL) {
  $this->data = [
    'id' => $id,
    'regions' => $regions,
    'settings' => $settings,
    'path' => $path,
  ];
  $this->original = $this->data;
}