Skip to content
Snippets Groups Projects

The patch uploaded in comment 81. Allows grouping by HTML elements.

Open Max Bronsema requested to merge issue/drupal-1383696:drupal-1383696-82 into 11.x

This patch appears to work on a local 11.x install.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
274 290 return $options;
275 291 }
276 292
293 /**
294 * Retrieve labels from views configuration.
  • 274 290 return $options;
    275 291 }
    276 292
    293 /**
    294 * Retrieve labels from views configuration.
    295 */
    296 public function getLabelElements() {
  • 174 181 return $this->usesGrouping;
    175 182 }
    176 183
    184 /**
    185 * Returns the usesGroupingLabelElement property.
    186 *
    187 * @return bool
    188 */
    189 public function usesGroupingLabelElement() {
  • 56 56 */
    57 57 protected $usesRowPlugin = FALSE;
    58 58
    59 /**
    60 * Should grouping fields use a wrapping element tag.
    61 *
    62 * @var bool
    63 */
    64 protected $usesGroupingLabelElement = FALSE;
  • 33 33 */
    34 34 protected $usesRowClass = TRUE;
    35 35
    36 /**
    37 * Should grouping fields use a wrapping element tag.
    38 *
    39 * @var bool
    40 */
    41 protected $usesGroupingLabelElement = TRUE;
    • What happens if a style plugin doesn't declare a usesGroupingLabelElement?

    • That is a good question. In StylePluginBase.php the GroupingLabelElement is set to false. Seeing your other comments, I think I need to make this be

      protected bool $usesGroupingLabelElement = FALSE;

      /**

      • Should grouping fields use a wrapping element tag.
      • @var bool */ protected $usesGroupingLabelElement = FALSE;
    • Please register or sign in to reply
  • Carly Gerard added 1 commit

    added 1 commit

    Compare with previous version

  • Carly Gerard added 1 commit

    added 1 commit

    • 6c1d021a - add bool param to grouping label function

    Compare with previous version

  • Carly Gerard added 1 commit

    added 1 commit

    • ed0ec64b - add bool param to grouping label function

    Compare with previous version

  • Carly Gerard added 2 commits

    added 2 commits

    • 01b97fda - identify bool param on protected label element functions
    • d2596bdb - add return array typehint and description to getLabelElements

    Compare with previous version

  • Carly Gerard added 1 commit

    added 1 commit

    • e52f5645 - fixes phpcs formatting flagged in StylePluginBase

    Compare with previous version

  • Max Bronsema added 206 commits

    added 206 commits

    • e52f5645...082f8910 - 197 commits from branch project:11.x
    • 38a266e2 - The patch uploaded in comment 81. Allows grouping by HTML elements.
    • 93c4f445 - Fixed two whitespace errors.
    • 4b7a0596 - Fixed two whitespace errors.
    • 048c80c6 - add bool param to function
    • b5883e31 - add bool param to grouping label function
    • af635451 - add bool param to grouping label function
    • 9e29a2fe - identify bool param on protected label element functions
    • af3762e4 - add return array typehint and description to getLabelElements
    • eaf414b7 - fixes phpcs formatting flagged in StylePluginBase

    Compare with previous version

  • Max Bronsema added 75 commits

    added 75 commits

    • eaf414b7...49ce0c0e - 65 earlier commits
    • a77cbc57 - Issue #3443959: DialogRenderer::getTitleAsStringable() does not support all...
    • 92ba71fe - Issue #3439923 by alexpott, longwave, thejimbirch, Wim Leers, phenaproxima,...
    • 992e5a45 - Issue #3417066 by mondrake, longwave, larowlan, alexpott, catch: Upgrade...
    • 02b4d49e - Issue #3444264 by andypost, alexpott, longwave: [PHP 8.4] ReflectionMethod...
    • 6746c9c0 - Issue #3445791 by balsama, phenaproxima: Language module...
    • 3edfd5fc - Issue #3445833 by catch: Performance test gitlab job is failing on 11.x
    • d1d9e2bd - Issue #3444978 by catch, Berdir: UserAuth BC layer is not working for modules...
    • b9d1a6d0 - Issue #3445788 by andypost: [PHP 8.4] Fix phpstan job for ContentModerationConfigureEntityTypesForm
    • f1520f62 - Updated views-view-grid.html.twig to use grouping logic.
    • 04d94666 - Updating core templates to match new views templates.

    Compare with previous version

  • Max Bronsema added 124 commits

    added 124 commits

    • 04d94666...0a4f122f - 113 commits from branch project:11.x
    • 1fc0725a - 1 earlier commit
    • 6106bc13 - Fixed two whitespace errors.
    • ec047954 - Fixed two whitespace errors.
    • df35b91d - add bool param to function
    • ca115a7e - add bool param to grouping label function
    • 9521635d - add bool param to grouping label function
    • c2ad351f - identify bool param on protected label element functions
    • 28322e8a - add return array typehint and description to getLabelElements
    • 46ce1614 - fixes phpcs formatting flagged in StylePluginBase
    • 3c067458 - Updated views-view-grid.html.twig to use grouping logic.
    • a49a0f0c - Updating core templates to match new views templates.

    Compare with previous version

  • Max Bronsema added 20 commits

    added 20 commits

    • a49a0f0c...4556add5 - 9 commits from branch project:11.x
    • a941f12f - 1 earlier commit
    • 99d06186 - Fixed two whitespace errors.
    • 8b8ae641 - Fixed two whitespace errors.
    • 6c7e7046 - add bool param to function
    • c8c07901 - add bool param to grouping label function
    • 14536643 - add bool param to grouping label function
    • 7a29300f - identify bool param on protected label element functions
    • 85793d39 - add return array typehint and description to getLabelElements
    • d1c5a889 - fixes phpcs formatting flagged in StylePluginBase
    • 10104305 - Updated views-view-grid.html.twig to use grouping logic.
    • ad0f1b9f - Updating core templates to match new views templates.

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading