You are here

public function DefaultParagraphsAddEvent::setParagraphEntity in Default Paragraphs 8

Set the paragraph entity.

Parameters

\Drupal\paragraphs\paragraphInterface $paragraph_entity: The updated paragraph entity.

File

src/Events/DefaultParagraphsAddEvent.php, line 66

Class

DefaultParagraphsAddEvent
Represents Paragraph Entity adding as default.

Namespace

Drupal\default_paragraphs\Events

Code

public function setParagraphEntity(paragraphInterface $paragraph_entity) {
  $this->paragraphEntity = $paragraph_entity;
}