Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
block_region_permissions-3438028
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
block_region_permissions-3438028
Commits
7a889bab
Commit
7a889bab
authored
8 years ago
by
Joshua Roberson
Browse files
Options
Downloads
Patches
Plain Diff
Coder Sniffer fixes
parent
9764ab78
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
block_region_permissions.module
+5
-5
5 additions, 5 deletions
block_region_permissions.module
src/AccessControlHandler.php
+1
-1
1 addition, 1 deletion
src/AccessControlHandler.php
with
6 additions
and
6 deletions
block_region_permissions.module
+
5
−
5
View file @
7a889bab
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
* Block region permissions module.
* Block region permissions module.
*/
*/
use
\
Drupal\Core\Render\Element
;
use
Drupal\Core\Render\Element
;
use
\
Drupal\block\Entity\Block
;
use
Drupal\block\Entity\Block
;
use
\
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
\
Drupal\Core\Session\AccountInterface
;
use
Drupal\Core\Session\AccountInterface
;
use
\
Drupal\Core\Access\AccessResult
;
use
Drupal\Core\Access\AccessResult
;
/**
/**
* Implements hook_form_FORM_ID_alter().
* Implements hook_form_FORM_ID_alter().
...
...
This diff is collapsed.
Click to expand it.
src/AccessControlHandler.php
+
1
−
1
View file @
7a889bab
...
@@ -63,7 +63,7 @@ class AccessControlHandler implements ContainerInjectionInterface {
...
@@ -63,7 +63,7 @@ class AccessControlHandler implements ContainerInjectionInterface {
* The block.
* The block.
*
*
* @return \Drupal\Core\Access\AccessResultInterface
* @return \Drupal\Core\Access\AccessResultInterface
*
An access result.
* An access result.
*/
*/
public
function
blockFormAccess
(
Block
$block
)
{
public
function
blockFormAccess
(
Block
$block
)
{
$account
=
$this
->
currentUser
();
$account
=
$this
->
currentUser
();
...
...
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