You are here

protected static function GeneralUserReferenceFormatter::getListStyles in Formatter Suite 8

Returns an array of list styles.

Return value

string[] Returns an associative array with internal names as keys and human-readable translated names as values.

3 calls to GeneralUserReferenceFormatter::getListStyles()
GeneralUserReferenceFormatter::sanitizeSettings in src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php
Sanitize settings to insure that they are safe and valid.
GeneralUserReferenceFormatter::settingsForm in src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php
Returns a form to configure settings for the formatter.
GeneralUserReferenceFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/GeneralUserReferenceFormatter.php, line 280

Class

GeneralUserReferenceFormatter
Formats a user entity reference as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

protected static function getListStyles() {
  return [
    'span' => t('Single line list'),
    'ol' => t('Numbered list'),
    'ul' => t('Bulleted list'),
    'div' => t('Non-bulleted block list'),
  ];
}