Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Drupal\history\Plugin\views\filter;
|
||||
|
||||
use Drupal\Core\Cache\UncacheableDependencyTrait;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
||||
|
||||
|
@ -17,6 +18,8 @@ use Drupal\views\Plugin\views\filter\FilterPluginBase;
|
|||
*/
|
||||
class HistoryUserTimestamp extends FilterPluginBase {
|
||||
|
||||
use UncacheableDependencyTrait;
|
||||
|
||||
// Don't display empty space where the operator would be.
|
||||
public $no_operator = TRUE;
|
||||
|
||||
|
@ -93,12 +96,4 @@ class HistoryUserTimestamp extends FilterPluginBase {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getCacheMaxAge() {
|
||||
// This filter depends on the current time and therefore is never cacheable.
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue