function HistoryUserTimestamp::query
Called to add the field to a query.
Overrides FieldPluginBase::query
File
-
core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php, line 73
Class
- HistoryUserTimestamp
- Field handler to display the marker for new content.
Namespace
Drupal\history\Plugin\views\fieldCode
public function query() {
// Only add ourselves to the query if logged in.
if (\Drupal::currentUser()->isAnonymous()) {
return;
}
parent::query();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.