From ff71f796bd1bb03f60b2525c6b95cd55d9ca03d6 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 2 Oct 2013 20:48:31 +0100 Subject: [PATCH] Issue #2096785 by damiankloip: Clean up Views access plugins. --- .../Plugin/views/access/AccessPluginBase.php | 25 +------------------ .../Drupal/views/Plugin/views/access/None.php | 8 +++--- 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 5db54db4a085..9d6a7131f49a 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 @@ use Drupal\Core\Session\AccountInterface; use Drupal\views\Plugin\views\PluginBase; -use Drupal\views\ViewExecutable; use Symfony\Component\Routing\Route; /** @@ -27,29 +26,7 @@ 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 f74e470f404f..e2aab10480ab 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 @@ */ 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. -- GitLab