Method url Found usages (10 usages found) Method call (10 usages found) drupal-8.3.x (10 usages found) core/modules/toolbar/tests/src/Functional (1 usage found) ToolbarAdminMenuTest.php (1 usage found) ToolbarAdminMenuTest (1 usage found) testLocaleTranslationSubtreesHashCacheClear (1 usage found) 307$this->assertUrl(\Drupal::url('locale.translate_page', [], ['absolute' => TRUE]), [], 'Correct page redirection.'); core/modules/views/tests/src/Functional/Handler (9 usages found) FieldWebTest.php (9 usages found) FieldWebTest (9 usages found) testAlterUrl (5 usages found) 232$expected_result = \Drupal::url('entity.node.canonical', ['node' => '123'], ['absolute' => $absolute]); 239$expected_result = \Drupal::url('entity.node.canonical', ['node' => '123'], ['fragment' => 'foo', 'absolute' => $absolute]); 246$expected_result = \Drupal::url('entity.node.canonical', ['node' => '123'], ['query' => ['foo' => NULL], 'absolute' => $absolute]); 253$expected_result = \Drupal::url('entity.node.canonical', ['node' => '123'], ['query' => ['foo' => 'bar', 'bar' => 'baz'], 'absolute' => $absolute]); 269$expected_result = \Drupal::url('', [], ['absolute' => $absolute]); testClickSorting (4 usages found) 68$this->assertLinkByHref(\Drupal::url('', [], ['query' => ['order' => 'id', 'sort' => 'asc']])); 69$this->assertLinkByHref(\Drupal::url('', [], ['query' => ['order' => 'name', 'sort' => 'desc']])); 70$this->assertNoLinkByHref(\Drupal::url('', [], ['query' => ['order' => 'created']])); 82$this->assertLinkByHref(\Drupal::url('', [], ['query' => ['order' => 'id', 'sort' => 'desc']]));