Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions workbench_access_protect/src/Access/DeleteAccessCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
*/
class DeleteAccessCheck implements DeleteAccessCheckInterface {

/**
* User account.
*
* @var \Drupal\Core\Session\AccountInterface
*/
private $account;

/**
* Default object for current_route_match service.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ protected function setUpTestContent() {
*/
protected function setUpTestUser() {
$user_storage = \Drupal::service('workbench_access.user_section_storage');
$role_storage = \Drupal::service('workbench_access.role_section_storage');
// Add the user to the base section.
$user_storage->addUser($this->scheme, $this->editor, [$this->term->id()]);
$expected = [$this->editor->id()];
Expand Down
4 changes: 3 additions & 1 deletion workbench_access_protect/workbench_access_protect.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
function hook_workbench_access_protect_list_alter(array &$list) {
// Our example module uses node types as the access scheme. They have no
// parents.
$list['node_type'] => ['node_type'];
return [
$list['node_type'] => ['node_type'],
];
}