You are here

protected function TextWithExpandCollapseButtonsFormatter::getDescription in Formatter Suite 8

Returns a brief description of the formatter.

Return value

string Returns a brief translated description of the formatter.

1 call to TextWithExpandCollapseButtonsFormatter::getDescription()
TextWithExpandCollapseButtonsFormatter::settingsForm in src/Plugin/Field/FieldFormatter/TextWithExpandCollapseButtonsFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/TextWithExpandCollapseButtonsFormatter.php, line 125

Class

TextWithExpandCollapseButtonsFormatter
Formats text with expand/collapse buttons to show more/less.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

protected function getDescription() {
  return $this
    ->t('Present long text in a shortened area and include links to expand the text to full height, and collapse it back again.');
}