You are here

public function HistoryUserTimestamp::query in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/filter/HistoryUserTimestamp.php \Views\node\Plugin\views\filter\HistoryUserTimestamp::query()
  2. 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\field

Code

public function query() {

  // Only add ourselves to the query if logged in.
  global $user;
  if (!$user->uid) {
    return;
  }
  parent::query();
}