Commit 79cbe797 authored by webchick's avatar webchick
Browse files

Issue #2001318 by Dan Reinders, chertzog: Rename Views method...

Issue #2001318 by Dan Reinders, chertzog: Rename Views method add_additional_fields() to addAdditionalFields().
parent 1187f773
...@@ -53,7 +53,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -53,7 +53,7 @@ public function buildOptionsForm(&$form, &$form_state) {
public function query() { public function query() {
$this->ensureMyTable(); $this->ensureMyTable();
$this->add_additional_fields(); $this->addAdditionalFields();
$this->field_alias = $this->table . '_' . $this->field; $this->field_alias = $this->table . '_' . $this->field;
} }
......
...@@ -187,7 +187,7 @@ public function query($use_groupby = FALSE) { ...@@ -187,7 +187,7 @@ public function query($use_groupby = FALSE) {
// Add additional fields (and the table join itself) if needed. // Add additional fields (and the table join itself) if needed.
if ($this->add_field_table($use_groupby)) { if ($this->add_field_table($use_groupby)) {
$this->ensureMyTable(); $this->ensureMyTable();
$this->add_additional_fields($fields); $this->addAdditionalFields($fields);
// Filter by langcode, if field translation is enabled. // Filter by langcode, if field translation is enabled.
$field = $this->field_info; $field = $this->field_info;
......
...@@ -42,7 +42,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -42,7 +42,7 @@ public function buildOptionsForm(&$form, &$form_state) {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function query() { public function query() {
$this->add_additional_fields(); $this->addAdditionalFields();
} }
function render($values) { function render($values) {
......
...@@ -50,7 +50,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -50,7 +50,7 @@ public function buildOptionsForm(&$form, &$form_state) {
public function query() { public function query() {
$this->ensureMyTable(); $this->ensureMyTable();
$this->add_additional_fields(); $this->addAdditionalFields();
} }
function render($values) { function render($values) {
......
...@@ -50,7 +50,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -50,7 +50,7 @@ public function buildOptionsForm(&$form, &$form_state) {
public function query() { public function query() {
$this->ensureMyTable(); $this->ensureMyTable();
$this->add_additional_fields(); $this->addAdditionalFields();
} }
function render($values) { function render($values) {
......
...@@ -88,7 +88,7 @@ public function buildOptionsForm(&$form, &$form_state) { ...@@ -88,7 +88,7 @@ public function buildOptionsForm(&$form, &$form_state) {
* Add this term to the query * Add this term to the query
*/ */
public function query() { public function query() {
$this->add_additional_fields(); $this->addAdditionalFields();
} }
function pre_render(&$values) { function pre_render(&$values) {
......
...@@ -53,7 +53,7 @@ public function access() { ...@@ -53,7 +53,7 @@ public function access() {
public function query() { public function query() {
$this->ensureMyTable(); $this->ensureMyTable();
$this->add_additional_fields(); $this->addAdditionalFields();
} }
/** /**
......
...@@ -31,7 +31,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o ...@@ -31,7 +31,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
} }
public function query() { public function query() {
$this->add_additional_fields(); $this->addAdditionalFields();
$this->field_alias = $this->aliases['uid']; $this->field_alias = $this->aliases['uid'];
} }
......
...@@ -31,7 +31,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o ...@@ -31,7 +31,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
} }
public function query() { public function query() {
$this->add_additional_fields(); $this->addAdditionalFields();
$this->field_alias = $this->aliases['uid']; $this->field_alias = $this->aliases['uid'];
} }
......
...@@ -102,7 +102,7 @@ public function query() { ...@@ -102,7 +102,7 @@ public function query() {
$params = $this->options['group_type'] != 'group' ? array('function' => $this->options['group_type']) : array(); $params = $this->options['group_type'] != 'group' ? array('function' => $this->options['group_type']) : array();
$this->field_alias = $this->query->add_field($this->tableAlias, $this->realField, NULL, $params); $this->field_alias = $this->query->add_field($this->tableAlias, $this->realField, NULL, $params);
$this->add_additional_fields(); $this->addAdditionalFields();
} }
/** /**
...@@ -115,7 +115,7 @@ public function query() { ...@@ -115,7 +115,7 @@ public function query() {
* form of * form of
* @code array('table' => $tablename, 'field' => $fieldname) @endcode * @code array('table' => $tablename, 'field' => $fieldname) @endcode
*/ */
function add_additional_fields($fields = NULL) { protected function addAdditionalFields($fields = NULL) {
if (!isset($fields)) { if (!isset($fields)) {
// notice check // notice check
if (empty($this->additional_fields)) { if (empty($this->additional_fields)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment