Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
menu_perms_per_menu
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
menu_perms_per_menu
Commits
849b3ba3
Commit
849b3ba3
authored
1 year ago
by
Karolina
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3288565
: Fix phpcs errors
parent
b1b63e1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Issue #3288565: Fix phpcs errors
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
menu_perms_per_menu.module
+1
-1
1 addition, 1 deletion
menu_perms_per_menu.module
src/Access/MenuPermsPerMenuPermissions.php
+2
-2
2 additions, 2 deletions
src/Access/MenuPermsPerMenuPermissions.php
tests/src/Kernel/MenuPermsPerMenuTest.php
+3
-3
3 additions, 3 deletions
tests/src/Kernel/MenuPermsPerMenuTest.php
with
6 additions
and
6 deletions
menu_perms_per_menu.module
+
1
−
1
View file @
849b3ba3
...
...
@@ -5,8 +5,8 @@
* Hook implementations for module menu_perms_per_menu.
*/
use
Drupal\Core\Render\Element
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Render\Element
;
/**
* Implements hook_form_FORM_ID_alter().
...
...
This diff is collapsed.
Click to expand it.
src/Access/MenuPermsPerMenuPermissions.php
+
2
−
2
View file @
849b3ba3
...
...
@@ -2,11 +2,11 @@
namespace
Drupal\menu_perms_per_menu\Access
;
use
Drupal\system\Entity\Menu
;
use
Drupal\Core\Access\AccessResult
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\menu_link_content
\Entity\MenuLinkContent
;
use
Drupal\Core\StringTranslation\StringTranslationTrait
;
use
Drupal\menu_link_content
\Entity\MenuLinkContent
;
use
Drupal\system\Entity\Menu
;
/**
* Provides permissions for each menu.
...
...
This diff is collapsed.
Click to expand it.
tests/src/Kernel/MenuPermsPerMenuTest.php
+
3
−
3
View file @
849b3ba3
...
...
@@ -2,12 +2,12 @@
namespace
Drupal\Tests\menu_perms_per_menu\Kernel
;
use
Drupal\system\Entity\Menu
;
use
Drupal\KernelTests\KernelTestBase
;
use
Drupal\menu_link_content
\Entity\MenuLinkContent
;
use
Drupal\system\Entity\Menu
;
use
Drupal\Tests\user\Traits\UserCreationTrait
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Drupal\Tests\user\Traits\UserCreationTrait
;
use
Drupal\menu_link_content
\Entity\MenuLinkContent
;
/**
* Test permissions for module menu_perms_per_menu.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment