You are here

protected function OptionsEmailItem::allowedValuesDescription in Contact Storage 8

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

src/Plugin/Field/FieldType/OptionsEmailItem.php, line 57

Class

OptionsEmailItem
Plugin to add the Option email item custom field type.

Namespace

Drupal\contact_storage\Plugin\Field\FieldType

Code

protected function allowedValuesDescription() {
  $description = '<p>' . $this
    ->t('The possible values this field can contain. Enter one value per line, in the format key|label|emails.');
  $description .= '<br/>' . $this
    ->t('"key" is the message that is added to the body of the message.');
  $description .= '<br/>' . $this
    ->t('"label" is the value displayed in the dropdown menu on the contact form.');
  $description .= '<br/>' . $this
    ->t('"emails" are the email addresses to add to the recipients list (each separated by a comma).');
  $description .= '</p>';
  $description .= '<p>' . $this
    ->t('Allowed HTML tags in labels: @tags', [
    '@tags' => FieldFilteredMarkup::displayAllowedTags(),
  ]) . '</p>';
  return $description;
}