public function Paragraph::getParagraphType

Returns the paragraph type.

Return value

ParagraphsTypeInterface The Paragraph Type.

Overrides ParagraphInterface::getParagraphType

2 calls to Paragraph::getParagraphType()
Paragraph::getIcons in paragraphs/src/Entity/Paragraph.php
Returns info icons render array for a paragraph.
Paragraph::getSummaryItems in paragraphs/src/Entity/Paragraph.php
Returns the summary items of the Paragraph.

File

paragraphs/src/Entity/Paragraph.php, line 314

Class

Paragraph
Defines the Paragraph entity.

Namespace

Drupal\paragraphs\Entity

Code

public function getParagraphType() {
  return $this->type->entity;
}