diff --git a/src/Form/AdminConfig/WebformAdminConfigElementsForm.php b/src/Form/AdminConfig/WebformAdminConfigElementsForm.php index 6a72cc402..4c28daa1c 100644 --- a/src/Form/AdminConfig/WebformAdminConfigElementsForm.php +++ b/src/Form/AdminConfig/WebformAdminConfigElementsForm.php @@ -454,6 +454,7 @@ class WebformAdminConfigElementsForm extends WebformAdminConfigBaseForm { foreach ($element_plugins as $element_id => $element_plugin) { $element_plugin_definition = $element_plugin->getPluginDefinition(); $element_plugin_label = $element_plugin_definition['label']; + $element_plugin_description = $element_plugin_definition['description']; $element_plugin_states = [ 'disabled' => [ ':input[name="excluded_elements[' . $element_id . ']"]' => ['checked' => FALSE], @@ -463,7 +464,18 @@ class WebformAdminConfigElementsForm extends WebformAdminConfigBaseForm { $row = []; // Title. - $row['title'] = ['#markup' => $element_plugin_label]; + $row['title'] = [ + 'title' => [ + '#markup' => $element_plugin_label, + '#prefix' => '', + '#suffix' => '', + ], + 'description' => [ + '#markup' => $element_plugin_description, + '#prefix' => '
', + '#suffix' => '
', + ], + ]; // ID. $row['id'] = ['#markup' => $element_id]; diff --git a/src/Plugin/WebformElement/WebformCodeMirror.php b/src/Plugin/WebformElement/WebformCodeMirror.php index b739ff209..4fd5a163d 100644 --- a/src/Plugin/WebformElement/WebformCodeMirror.php +++ b/src/Plugin/WebformElement/WebformCodeMirror.php @@ -13,7 +13,7 @@ use Drupal\webform\WebformSubmissionInterface; * @WebformElement( * id = "webform_codemirror", * label = @Translation("CodeMirror"), - * description = @Translation("Provides a form element for editing code in a number of programming languages and markup."), + * description = @Translation("Provides a form element for editing code in a number of programming languages and markup. Code editing support is provided by the CodeMirror library (https://codemirror.net)."), * category = @Translation("Advanced elements"), * multiline = TRUE, * ) diff --git a/src/Plugin/WebformElement/WebformRating.php b/src/Plugin/WebformElement/WebformRating.php index 3b2da032e..a9edc49ce 100644 --- a/src/Plugin/WebformElement/WebformRating.php +++ b/src/Plugin/WebformElement/WebformRating.php @@ -13,7 +13,7 @@ use Drupal\webform\WebformSubmissionInterface; * @WebformElement( * id = "webform_rating", * label = @Translation("Rating"), - * description = @Translation("Provides a form element to rate something using an attractive voting widget."), + * description = @Translation("Provides a form element to rate something using an attractive voting widget. Rating widget is provided by the RateIt library (https://github.com/gjunge/rateit.js)."), * category = @Translation("Advanced elements"), * ) */ diff --git a/src/Plugin/WebformElement/WebformSignature.php b/src/Plugin/WebformElement/WebformSignature.php index 99a360583..64a0cbc16 100644 --- a/src/Plugin/WebformElement/WebformSignature.php +++ b/src/Plugin/WebformElement/WebformSignature.php @@ -23,7 +23,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * @WebformElement( * id = "webform_signature", * label = @Translation("Signature"), - * description = @Translation("Provides a form element to collect electronic signatures from users."), + * description = @Translation("Provides a form element to collect electronic signatures from users. Signature support is by the Signature Pad library (https://github.com/szimek/signature_pad)"), * category = @Translation("Advanced elements"), * ) */