public function Paragraph::getType

Returns the paragraph type / bundle name as string.

Return value

string The Paragraph bundle name.

Overrides ParagraphInterface::getType

File

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

Class

Paragraph
Defines the Paragraph entity.

Namespace

Drupal\paragraphs\Entity

Code

public function getType() {
  return $this
    ->bundle();
}