You are here

public function Paragraph::getType in Paragraphs 8

Returns the paragraph type / bundle name as string.

Return value

string The Paragraph bundle name.

Overrides ParagraphInterface::getType

File

src/Entity/Paragraph.php, line 307

Class

Paragraph
Defines the Paragraph entity.

Namespace

Drupal\paragraphs\Entity

Code

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