Commit d460e969 authored by rocket.man's avatar rocket.man Committed by generalredneck

Issue #2860841 by rocket.man: Replace deprecated uses

parent b2f82629
......@@ -58,7 +58,8 @@ class Natural extends SortPluginBase {
* Join object containing views_natural_sort table.
*/
public function naturalSortJoin() {
$table_data = Views::viewsData()->get($this->table);
$storage = Views::viewsData()->getAll();
$table_data = $storage[$this->table];
$configuration = [
'table' => 'views_natural_sort',
'field' => 'eid',
......
......@@ -125,7 +125,8 @@ function views_natural_sort_entity_delete(EntityInterface $entity) {
* @Not-Rewritten
*/
function views_natural_sort_remove($index_entry) {
$query = db_delete('views_natural_sort')
$query = \Drupal::database()
->delete('views_natural_sort')
->condition('eid', $index_entry['eid'])
->condition('entity_type', $index_entry['entity_type']);
if (isset($index_entry['field'])) {
......
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