You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
@dpi Fatal error: Declaration of Drupal\rng\Plugin\Menu\LocalAction\ResetAccessRules::getTitle() must be compatible with Drupal\Core\Menu\LocalActionDefault::getTitle(?Symfony\Component\HttpFoundation\Request $request = NULL) in /var/www/html/web/modules/contrib/rng/src/Plugin/Menu/LocalAction/ResetAccessRules.php on line 15
Here is a patch for it.
diff --git a/src/Plugin/Menu/LocalAction/ResetAccessRules.php b/src/Plugin/Menu/LocalAction/ResetAccessRules.php
index 4a67235..28c6bc4 100644
--- a/src/Plugin/Menu/LocalAction/ResetAccessRules.php
+++ b/src/Plugin/Menu/LocalAction/ResetAccessRules.php
@@ -8,6 +8,7 @@ use Drupal\rng\EventManagerInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Symfony\Component\HttpFoundation\Request;
/**
* Modifies the reset access rules action.
@@ -70,7 +71,7 @@ class ResetAccessRules extends LocalActionDefault {
/**
* {@inheritdoc}
*/
- public function getTitle() {
+ public function getTitle(Request $request = NULL) {
$route = $this->routeProvider->getRouteByName($this->getRouteName());
$param = $route->getDefault('event');
The text was updated successfully, but these errors were encountered:
@dpi
Fatal error: Declaration of Drupal\rng\Plugin\Menu\LocalAction\ResetAccessRules::getTitle() must be compatible with Drupal\Core\Menu\LocalActionDefault::getTitle(?Symfony\Component\HttpFoundation\Request $request = NULL) in /var/www/html/web/modules/contrib/rng/src/Plugin/Menu/LocalAction/ResetAccessRules.php on line 15
Here is a patch for it.
The text was updated successfully, but these errors were encountered: