Commit 25051717 authored by Harsh Panchal's avatar Harsh Panchal Committed by Rob Little
Browse files

Issue #3295427 by akshaydalvi212, Harsh panchal: Phpcs Drupal coding Standard issue

parent db9a5632
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -16,7 +16,14 @@ function grid_widget_help($route_name, RouteMatchInterface $route_match) {
    case 'help.page.grid_widget':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Grid Widget module allows you to create fields where data values are selected from a fixed grid of options. Usually these items are entered through checkboxes or radio buttons. See the <a href=":field">Field module help</a>, <a href=":field_ui">Field UI help</a>, and the <a href=":options">Options help</a> pages for general information on fields and how to create and manage them.', [':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString(), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page', ['name' => 'field_ui'])->toString() : '#', ':options' => (\Drupal::moduleHandler()->moduleExists('options')) ? Url::fromRoute('help.page', ['name' => 'options'])->toString() : '#']) . '</p>';
      $output .= '<p>' . t('The Grid Widget module allows you to create fields where data values are selected from a fixed grid of options. Usually these items are entered through checkboxes or radio buttons. See the <a href=":field">Field module help</a>, <a href=":field_ui">Field UI help</a>, and the <a href=":options">Options help</a> pages for general information on fields and how to create and manage them.', [
        ':field' => Url::fromRoute('help.page',
        ['name' => 'field'])->toString(),
        ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? Url::fromRoute('help.page',
        ['name' => 'field_ui'])->toString() : '#',
        ':options' => (\Drupal::moduleHandler()->moduleExists('options')) ? Url::fromRoute('help.page',
        ['name' => 'options'])->toString() : '#',
      ]) . '</p>';
      return $output;

    default:
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ class OptionsGridWidget extends OptionsButtonsWidget {
   */
  public static function defaultSettings() {
    return [
      'size' => 3
      'size' => 3,
    ] + parent::defaultSettings();
  }