public function HistoryUserTimestamp::query in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Views/node/Plugin/views/filter/HistoryUserTimestamp.php \Views\node\Plugin\views\filter\HistoryUserTimestamp::query()
- 8.3 lib/Views/node/Plugin/views/field/HistoryUserTimestamp.php \Views\node\Plugin\views\field\HistoryUserTimestamp::query()
Called to add the field to a query.
Overrides FieldPluginBase::query
File
- lib/
Views/ node/ Plugin/ views/ field/ HistoryUserTimestamp.php, line 61 - Definition of Views\node\Plugin\views\field\HistoryUserTimestamp.
Class
- HistoryUserTimestamp
- Field handler to display the marker for new content.
Namespace
Views\node\Plugin\views\fieldCode
public function query() {
// Only add ourselves to the query if logged in.
global $user;
if (!$user->uid) {
return;
}
parent::query();
}