Commit cf5576a9 authored by adriancid's avatar adriancid

Issue #3121790 by adriancid: Fix coding standard issues.

parent 95009ad3
......@@ -55,8 +55,9 @@ function admin_toolbar_search_toolbar_alter(&$items) {
],
'#cache' => [
'contexts' => [
'user.permissions'
'user.permissions',
],
],
];
}
......@@ -65,9 +65,9 @@ class SearchLinks {
* The module handler.
* @param \Drupal\Core\Routing\RouteProviderInterface $route_provider
* The route provider.
* @param \Drupal\Core\Cache\Context\CacheContextsManager $cache_contexts_manager
* @param \Drupal\Core\Cache\Context\CacheContextsManager $cache_context_manager
* The cache contexts manager.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* @param \Drupal\Core\Cache\CacheBackendInterface $toolbar_cache
* Cache backend instance to use.
*/
public function __construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, RouteProviderInterface $route_provider, CacheContextsManager $cache_context_manager, CacheBackendInterface $toolbar_cache) {
......@@ -83,6 +83,9 @@ class SearchLinks {
*
* @return array
* An array of link data for the JSON used for search.
*
* @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
*/
public function getLinks() {
$additional_keys = $this->cacheContextManager->convertTokensToKeys([
......
......@@ -31,7 +31,7 @@ abstract class AdminToolbarSearchTestBase extends WebDriverTestBase {
];
/**
* A user with the 'Use Admin Toolbar search' permission.
* A user with the 'Use Admin Toolbar search' permission.
*
* @var \Drupal\user\UserInterface
*/
......
......@@ -40,13 +40,6 @@ class AdminToolbarToolsSortTest extends BrowserTestBase {
*/
protected $adminUser;
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
}
/**
* Tests that menu updates on entity add/update/delete.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment