summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-10-02 19:48:31 (GMT)
committerAlex Pott2013-10-02 19:48:31 (GMT)
commitff71f796bd1bb03f60b2525c6b95cd55d9ca03d6 (patch)
tree7026cd9b5839b41c266d5fd6aca6a00ae0e0060b
parent682adb00db90a26627fc1698a8b8239c2cb8b4cb (diff)
Issue #2096785 by damiankloip: Clean up Views access plugins.
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php25
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/access/None.php8
2 files changed, 5 insertions, 28 deletions
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php
index 5db54db..9d6a713 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/access/AccessPluginBase.php
@@ -9,7 +9,6 @@ namespace Drupal\views\Plugin\views\access;
use Drupal\Core\Session\AccountInterface;
use Drupal\views\Plugin\views\PluginBase;
-use Drupal\views\ViewExecutable;
use Symfony\Component\Routing\Route;
/**
@@ -27,29 +26,7 @@ use Symfony\Component\Routing\Route;
abstract class AccessPluginBase extends PluginBase {
/**
- * Retrieve the options when this is a new access
- * control plugin
- */
- protected function defineOptions() { return array(); }
-
- /**
- * Provide the default form for setting options.
- */
- public function buildOptionsForm(&$form, &$form_state) { }
-
- /**
- * Provide the default form form for validating options
- */
- public function validateOptionsForm(&$form, &$form_state) { }
-
- /**
- * Provide the default form form for submitting options
- */
- public function submitOptionsForm(&$form, &$form_state) { }
-
- /**
- * Return a string to display as the clickable title for the
- * access control.
+ * {@inheritdoc}
*/
public function summaryTitle() {
return t('Unknown');
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php b/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
index f74e470..e2aab10 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/access/None.php
@@ -7,10 +7,7 @@
namespace Drupal\views\Plugin\views\access;
-use Drupal\views\Annotation\ViewsAccess;
-use Drupal\Core\Annotation\Translation;
use Drupal\Core\Session\AccountInterface;
-
use Symfony\Component\Routing\Route;
/**
@@ -26,12 +23,15 @@ use Symfony\Component\Routing\Route;
*/
class None extends AccessPluginBase {
+ /**
+ * {@inheritdoc}
+ */
public function summaryTitle() {
return t('Unrestricted');
}
/**
- * Implements Drupal\views\Plugin\views\access\AccessPluginBase::access().
+ * {@inheritdoc}
*/
public function access(AccountInterface $account) {
// No access control.