Commit 4c59d8c1 authored by Clayton Dewey's avatar Clayton Dewey Committed by Jeff Hipp
Browse files

Issue #3259244 by cedewey: Improve the help page

parent c169b13e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -17,8 +17,9 @@ use Drupal\maxlength\MaxLengthCallbacks;
function maxlength_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.maxlength':
      $output = '<p>' . t('Maxlength creates a new Form Property: #maxlength_js which in conjunction with #maxlength will enforce, via JavaScript, the maxlength of a textfield or textarea and will show the number of characters left.') . '</p>';
      $output .= '<p>' . t('Using the form display page, you can limit textfields and textareas. For textfields this module will use the "<strong>Maximum length</strong>" value set in the <strong>field plugin settings</strong>.') . '</p>';
      $output = '<h2>' . t('About') . '</h2>';
      $output = '<p>' . t('To configure a character limit, navigate to the <strong>Manage form display</strong> settings page for the field you are setting a limit on. For example, setting a character limit on the Body field of the Article content type would be found at <em>Structure > Content Types > Article > Manage form display</em>.') . '</p>';
      $output .= '<p>' . t('For more information, see the ') . t('<a href="https://www.drupal.org/docs/contributed-modules/maxlength">online documentation for the Maxlength module</a>.') . '</p>';
      return $output;
  }
}