X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FPlugin%2Fviews%2Fargument_validator%2FArgumentValidatorPluginBase.php;fp=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FPlugin%2Fviews%2Fargument_validator%2FArgumentValidatorPluginBase.php;h=6e797b49b1beb0114e0390123c2c5eb86d742121;hp=5f40430d2be9b0af0d804f1f44c8464014de9d94;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php b/web/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php index 5f40430d2..6e797b49b 100644 --- a/web/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php +++ b/web/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php @@ -53,27 +53,31 @@ abstract class ArgumentValidatorPluginBase extends PluginBase { /** * Retrieves the options when this is a new access control plugin. */ - protected function defineOptions() { return []; } + protected function defineOptions() { + return []; + } /** * Provides the default form for setting options. */ - public function buildOptionsForm(&$form, FormStateInterface $form_state) { } + public function buildOptionsForm(&$form, FormStateInterface $form_state) {} /** * Provides the default form for validating options. */ - public function validateOptionsForm(&$form, FormStateInterface $form_state) { } + public function validateOptionsForm(&$form, FormStateInterface $form_state) {} /** * Provides the default form for submitting options. */ - public function submitOptionsForm(&$form, FormStateInterface $form_state, &$options = []) { } + public function submitOptionsForm(&$form, FormStateInterface $form_state, &$options = []) {} /** * Determines if the administrator has the privileges to use this plugin. */ - public function access() { return TRUE; } + public function access() { + return TRUE; + } /** * Blocks user input when the form is shown but we don´t have access. @@ -92,7 +96,9 @@ abstract class ArgumentValidatorPluginBase extends PluginBase { /** * Performs validation for a given argument. */ - public function validateArgument($arg) { return TRUE; } + public function validateArgument($arg) { + return TRUE; + } /** * Processes the summary arguments for displaying. @@ -102,7 +108,7 @@ abstract class ArgumentValidatorPluginBase extends PluginBase { * for a faster query. But there are use cases where you want to use * the old value again, for example the summary. */ - public function processSummaryArguments(&$args) { } + public function processSummaryArguments(&$args) {} /** * Returns a context definition for this argument. @@ -111,7 +117,7 @@ abstract class ArgumentValidatorPluginBase extends PluginBase { * A context definition that represents the argument or NULL if that is * not possible. */ - public function getContextDefinition() { } + public function getContextDefinition() {} }