Called to add the field to a query.
Overrides FieldPluginBase::query
public function query() { // Only add ourselves to the query if logged in. global $user; if (!$user->uid) { return; } parent::query(); }