You are here

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

Constructor.

Parameters

\Drupal\paragraphs\Entity\Paragraph $paragraph: The paragraph this layout section is attached to.

\Drupal\layout_paragraphs\LayoutParagraphsComponent[] $components: An array of child components.

Overrides LayoutParagraphsComponent::__construct

File

src/LayoutParagraphsSection.php, line 34

Class

LayoutParagraphsSection
Provides a domain object for a Layout Paragraphs Section.

Namespace

Drupal\layout_paragraphs

Code

public function __construct(Paragraph $paragraph, array $components = []) {
  parent::__construct($paragraph);
  $this->components = $components;
}