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\EntityCode
public function getType() {
return $this
->bundle();
}