You are here

protected function LinkClassFieldWidget::selectClassDescription in Link class 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldWidget/LinkClassFieldWidget.php \Drupal\link_class\Plugin\Field\FieldWidget\LinkClassFieldWidget::selectClassDescription()

Return the description for the class select mode.

1 call to LinkClassFieldWidget::selectClassDescription()
LinkClassFieldWidget::settingsForm in src/Plugin/Field/FieldWidget/LinkClassFieldWidget.php
Returns a form to configure settings for the widget.

File

src/Plugin/Field/FieldWidget/LinkClassFieldWidget.php, line 86

Class

LinkClassFieldWidget
Plugin implementation of the 'link_class_field_widget' widget.

Namespace

Drupal\link_class\Plugin\Field\FieldWidget

Code

protected function selectClassDescription() {
  $description = '<p>' . t('The possible classes this link can have. Enter one value per line, in the format key|label.');
  $description .= '<br/>' . t('The key is the string which will be used as a class on a link. The label will be used on edit forms.');
  $description .= '<br/>' . t('If the key contains several classes, each class must be separated by a <strong>space</strong>.');
  $description .= '<br/>' . t('The label is optional: if a line contains a single string, it will be used as key and label.');
  $description .= '</p>';
  return $description;
}