1 handlers.inc views_many_to_one_helper::get_field()

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();

File

core/modules/views/includes/handlers.inc, line 674
Defines the various handler objects to help build and display views.

Class

views_many_to_one_helper

Code

function get_field() {
  if (!empty($this->formula)) {
    return $this->handler->get_formula();
  }
  else {
    return $this->handler->table_alias . '.' . $this->handler->real_field;
  }
}