protected function InlineParagraphsWidget::getDefaultParagraphTypeLabelName in Paragraphs Sets 8
Returns the default paragraph type.
Return value
string Label name for default paragraph type.
Overrides InlineParagraphsWidget::getDefaultParagraphTypeLabelName
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 425
Class
- InlineParagraphsWidget
- Plugin definition of the 'entity_reference 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;
}