Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
5c2d828b
Commit
5c2d828b
authored
4 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-3921: removing unused code in the content access form
parent
736dc507
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/UwContentAccessForm.php
+1
-59
1 addition, 59 deletions
src/Form/UwContentAccessForm.php
with
1 addition
and
59 deletions
src/Form/UwContentAccessForm.php
+
1
−
59
View file @
5c2d828b
...
@@ -16,69 +16,11 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
...
@@ -16,69 +16,11 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
class
UwContentAccessForm
extends
FormBase
{
class
UwContentAccessForm
extends
FormBase
{
/**
* The permission handler.
*
* @var \Drupal\user\PermissionHandlerInterface
*/
protected
$permissionHandler
;
/**
* The role storage.
*
* @var \Drupal\user\RoleStorageInterface
*/
protected
$roleStorage
;
/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected
$moduleHandler
;
/**
* Constructs a new UserPermissionsForm.
*
* @param \Drupal\user\PermissionHandlerInterface $permission_handler
* The permission handler.
* @param \Drupal\user\RoleStorageInterface $role_storage
* The role storage.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
*/
public
function
__construct
(
PermissionHandlerInterface
$permission_handler
,
RoleStorageInterface
$role_storage
,
ModuleHandlerInterface
$module_handler
)
{
$this
->
permissionHandler
=
$permission_handler
;
$this
->
roleStorage
=
$role_storage
;
$this
->
moduleHandler
=
$module_handler
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
)
{
return
new
static
(
$container
->
get
(
'user.permissions'
),
$container
->
get
(
'entity_type.manager'
)
->
getStorage
(
'user_role'
),
$container
->
get
(
'module_handler'
)
);
}
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public
function
getFormId
()
{
public
function
getFormId
()
{
return
'uw_contact_access_form'
;
return
'uw_content_access_form'
;
}
/**
* Gets the roles to display in this form.
*
* @return \Drupal\user\RoleInterface[]
* An array of role objects.
*/
protected
function
getRoles
()
{
return
$this
->
roleStorage
->
loadMultiple
();
}
}
/**
/**
...
...
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