protected function ParagraphsWidget::getDefaultParagraphTypeLabelName in Paragraphs Sets 8
Returns the default paragraph type.
Return value
string Label name for default paragraph type.
Overrides ParagraphsWidget::getDefaultParagraphTypeLabelName
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 525
Class
- ParagraphsWidget
- Plugin implementation of 'entity_reference_revisions paragraphs sets' widget.
Namespace
Drupal\paragraphs_sets\Plugin\Field\FieldWidgetCode
protected function getDefaultParagraphTypeLabelName() {
if ($this
->getDefaultParagraphTypeMachineName() !== NULL) {
$allowed_types = static::getSets();
return $allowed_types[$this
->getDefaultParagraphTypeMachineName()]['label'];
}
return NULL;
}