You are here

public function ManyToOneHelper::getField in Views (for Drupal 7) 8.3

Sometimes the handler might want us to use some kind of formula, so give it that option. If it wants us to do this, it must set $helper->formula = TRUE and implement handler->get_formula();

1 call to ManyToOneHelper::getField()
ManyToOneHelper::add_filter in lib/Drupal/views/ManyToOneHelper.php

File

lib/Drupal/views/ManyToOneHelper.php, line 51
Definition of Drupal\views\ManyToOneHelper.

Class

ManyToOneHelper
This many to one helper object is used on both arguments and filters.

Namespace

Drupal\views

Code

public function getField() {
  if (!empty($this->formula)) {
    return $this->handler
      ->get_formula();
  }
  else {
    return $this->handler->tableAlias . '.' . $this->handler->realField;
  }
}