Returns a short summary for the current behavior settings.
\Drupal\paragraphs\Entity\Paragraph $paragraph: The paragraph.
string[] The plugin settings.
Overrides ParagraphsBehaviorBase::settingsSummary
public function settingsSummary(Paragraph $paragraph) {
$bold_setting = $paragraph
->getBehaviorSetting($this
->getPluginId(), 'bold_text');
return [
[
'label' => $this
->t('Bold'),
'value' => $bold_setting ? $this
->t('Yes') : $this
->t('No'),
],
];
}