Commit 0ee9336d authored by fago's avatar fago

Various small documentation fixes and removal of unused use statements.

parent 1be752f6
Content Access Module
-----------------------
by Wolfgang Ziegler, nuppla@zites.net
......
......@@ -11,12 +11,10 @@
define('CONTENT_ACCESS_MASS_UPDATE_THRESHOLD', 1000);
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Database\Database;
use Drupal\node\NodeInterface;
use Drupal\node\NodeTypeInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Cache\Cache;
use Drupal\user\RoleInterface;
use Drupal\Core\Entity\EntityInterface;
......
......@@ -15,7 +15,7 @@ use Drupal\node\Entity\NodeType;
class ContentAccessAdminSettingsAccessCheck implements AccessInterface {
/**
* {@inhericdoc}
* {@inheritdoc}
*/
public function access(AccountInterface $account, RouteMatchInterface $route_match) {
$node_type_id = $route_match->getParameter('node_type');
......
......@@ -5,10 +5,7 @@ namespace Drupal\content_access\Access;
use Drupal\Core\Routing\Access\AccessInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Access\AccessResult;
use Drupal\node\Entity\Node;
use Drupal\Core\Routing\RouteMatchInterface;
use Symfony\Component\Routing\Route;
/**
* Determines access to routes based on permissions defined via
......@@ -17,7 +14,7 @@ use Symfony\Component\Routing\Route;
class ContentAccessNodePageAccessCheck implements AccessInterface {
/**
* {@inhericdoc}
* {@inheritdoc}
*/
public function access(AccountInterface $account, RouteMatchInterface $route_match) {
$node = $route_match->getParameter('node');
......
......@@ -10,9 +10,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Node Access settings form.
* @package Drupal\content_access\Form
*/
class ContentAccessAdminSettingsForm extends FormBase {
use ContentAccessRoleBasedFormTrait;
/**
......
......@@ -11,10 +11,10 @@ use Drupal\Core\Cache\Cache;
use Drupal\Core\Session\AccountInterface;
/**
* Node Access settings form
* @package Drupal\content_access\Form
* Node Access settings form.
*/
class ContentAccessPageForm extends FormBase {
use ContentAccessRoleBasedFormTrait;
/**
......
......@@ -39,7 +39,7 @@ trait ContentAccessRoleBasedFormTrait {
$roles[$role->id()] = $role->get('label');
}
foreach ($operations as $op => $label) {
// Make sure defaults are set properly
// Make sure defaults are set properly.
$defaults += [$op => []];
$form['per_role'][$op] = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment