Skip to content
Snippets Groups Projects

Issue #3509141: Missing Aria Label value in Views

4 unresolved threads
Open Riyas N R requested to merge issue/drupal-3509141:3509141-missing-aria-label into 11.x
4 unresolved threads

Closes #3509141

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
532 532 rel:
533 533 type: string
534 534 label: 'Rel Text'
535 aria_label:
  • Riyas N R added 23 commits

    added 23 commits

    • 202a066c...f1b31c46 - 21 commits from branch project:11.x
    • cc49aed9 - Merge branch '11.x' of https://git.drupalcode.org/project/drupal into 3509141-missing-aria-label
    • c74bee74 - Issue #3509141: Add post update hook and test coverage for update hook

    Compare with previous version

  • Riyas N R added 10 commits

    added 10 commits

    Compare with previous version

  • Riyas N R added 1 commit

    added 1 commit

    Compare with previous version

  • Riyas N R added 1 commit

    added 1 commit

    Compare with previous version

  • 27 }
    28
    29 /**
    30 * Tests that numeric argument plugins are updated properly.
    31 */
    32 public function testAriaLabelPostUpdate(): void {
    33 $view = View::load('files');
    34 $data = $view->toArray();
    35 $this->assertArrayHasKey('alter', $data['display']['default']['display_options']['fields']['filename']);
    36 $this->assertArrayNotHasKey('aria_label', $data['display']['default']['display_options']['fields']['filename']['alter']);
    37
    38 $this->runUpdates();
    39
    40 $view = View::load('files');
    41 $data = $view->toArray();
    42 $this->assertEquals('', $data['display']['default']['display_options']['fields']['filename']['alter']['aria_label']);
  • 11 11 * Tests the upgrade path for converting numeric arguments to entity_target_id.
    12 12 *
    13 13 * @group Update
    14 * @group legacy
  • 363 return $this->processAriaLabelUpdate($handler, $handler_type);
    364 });
    365 }
    366
    367 /**
    368 * Processes fields and adds an empty 'aria_label' if not set.
    369 *
    370 * @param array $handler
    371 * A display handler.
    372 * @param string $handler_type
    373 * The handler type.
    374 *
    375 * @return bool
    376 * Whether the handler was updated.
    377 */
    378 public function processAriaLabelUpdate(array &$handler, string $handler_type): bool {
    Please register or sign in to reply
    Loading