You are here

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

Class constructor.

Parameters

Drupal\paragraphs\Entity\Paragraph $paragraph: The paragraph entity.

1 call to LayoutParagraphsComponent::__construct()
LayoutParagraphsSection::__construct in src/LayoutParagraphsSection.php
Constructor.
1 method overrides LayoutParagraphsComponent::__construct()
LayoutParagraphsSection::__construct in src/LayoutParagraphsSection.php
Constructor.

File

src/LayoutParagraphsComponent.php, line 32

Class

LayoutParagraphsComponent
Provides a domain object for a single Layout Paragraphs Component.

Namespace

Drupal\layout_paragraphs

Code

public function __construct(Paragraph $paragraph) {
  $this->paragraph = $paragraph;
}