You are here

public function LayoutParagraphsLayout::__construct in Layout Paragraphs 2.0.x

Class constructor.

Parameters

\Drupal\Core\Field\EntityReferenceFieldItemListInterface $paragraphs_reference_field: The paragraph reference field this layout is attached to.

array[] $settings: An array of settings.

File

src/LayoutParagraphsLayout.php, line 64

Class

LayoutParagraphsLayout
Provides a domain object for a complete Layout Paragraphs Layout.

Namespace

Drupal\layout_paragraphs

Code

public function __construct(EntityReferenceFieldItemListInterface $paragraphs_reference_field, array $settings = []) {
  $this->paragraphsReferenceField = $paragraphs_reference_field;
  $this->settings = $settings;
}