Issue #3509141: Missing Aria Label value in Views
4 unresolved threads
Closes #3509141
Merge request reports
Activity
added 1 commit
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
-
202a066c...f1b31c46 - 21 commits from branch
added 10 commits
-
c74bee74...c29d83bc - 9 commits from branch
project:11.x
- 6f54c763 - Issue #3509141: Resolve merge conflict
-
c74bee74...c29d83bc - 9 commits from branch
added 1 commit
added 1 commit
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']); 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