Skip to content
Snippets Groups Projects
Commit 5c63406b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2002912 by markie: Rename Views method get_field_alias() to getFieldAlias().

parent b06ef6d1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1044,9 +1044,11 @@ function add_groupby($clause) {
/**
* Returns the alias for the given field added to $table.
*
* @access protected
*
* @see views_plugin_query_default::add_field()
*/
function get_field_alias($table_alias, $field) {
protected function getFieldAlias($table_alias, $field) {
return isset($this->field_aliases[$table_alias][$field]) ? $this->field_aliases[$table_alias][$field] : FALSE;
}
......@@ -1600,7 +1602,7 @@ function loadEntities(&$results) {
$entity_type = $table['entity_type'];
$info = entity_get_info($entity_type);
$id_key = empty($table['revision']) ? $info['entity_keys']['id'] : $info['entity_keys']['revision'];
$id_alias = $this->get_field_alias($table_alias, $id_key);
$id_alias = $this->getFieldAlias($table_alias, $id_key);
foreach ($results as $index => $result) {
// Store the entity id if it was found.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment