protected function ParagraphsWidget::getDefaultParagraphTypeLabelName in Paragraphs 8
Returns the default paragraph type.
Return value
string Label name for default paragraph type.
1 call to ParagraphsWidget::getDefaultParagraphTypeLabelName()
- ParagraphsWidget::settingsSummary in src/
Plugin/ Field/ FieldWidget/ ParagraphsWidget.php - Returns a short summary for the current widget settings.
File
- src/
Plugin/ Field/ FieldWidget/ ParagraphsWidget.php, line 2437
Class
- ParagraphsWidget
- Plugin implementation of the 'entity_reference_revisions 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;
}