function ListIntegerItem::allowedValuesDescription

Same name and namespace in other branches
  1. 9 core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::allowedValuesDescription()
  2. 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::allowedValuesDescription()
  3. 10 core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php \Drupal\options\Plugin\Field\FieldType\ListIntegerItem::allowedValuesDescription()

Provides the field type specific allowed values form element #description.

Return value

string The field type allowed values form specific description.

Overrides ListItemBase::allowedValuesDescription

File

core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php, line 60

Class

ListIntegerItem
Plugin implementation of the 'list_integer' field type.

Namespace

Drupal\options\Plugin\Field\FieldType

Code

protected function allowedValuesDescription() {
  $description = '<p>' . $this->t('The name will be used in displayed options and edit forms. The value is the stored value, and must be numeric.') . '</p>';
  $description .= '<p>' . $this->t('Allowed HTML tags in labels: @tags', [
    '@tags' => FieldFilteredMarkup::displayAllowedTags(),
  ]) . '</p>';
  return $description;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.