public function ParagraphsItemEntity::defaultLabel in Paragraphs 7
Specifies the default label, which is picked up by label() by default.
Overrides Entity::defaultLabel
File
- ./
ParagraphsItemEntity.inc, line 152
Class
- ParagraphsItemEntity
- Entity implementation for the paragraphs entity.
Code
public function defaultLabel() {
if ($this
->fetchHostDetails()) {
// Don't show a label. The parent field already shows a label if the user
// wants to display one.
return '';
}
// Should only happen when there is something wrong.
return t('Unconnected paragraphs item');
}