protected function InlineParagraphsWidget::getDefaultParagraphTypeLabelName in Paragraphs 8
Returns the default paragraph type.
Return value
string $default_paragraph_type Label name for default paragraph type.
1 call to InlineParagraphsWidget::getDefaultParagraphTypeLabelName()
- InlineParagraphsWidget::settingsSummary in src/
Plugin/ Field/ FieldWidget/ InlineParagraphsWidget.php - Returns a short summary for the current widget settings.
File
- src/
Plugin/ Field/ FieldWidget/ InlineParagraphsWidget.php, line 1439
Class
- InlineParagraphsWidget
- Plugin implementation of the 'entity_reference paragraphs' widget.
Namespace
Drupal\paragraphs\Plugin\Field\FieldWidgetCode
protected function getDefaultParagraphTypeLabelName() {
if ($this
->getDefaultParagraphTypeMachineName() !== NULL) {
$allowed_types = $this
->getAllowedTypes();
return $allowed_types[$this
->getDefaultParagraphTypeMachineName()]['label'];
}
return NULL;
}