You are here

public function DraggableViews::getParent in DraggableViews 8

Same name and namespace in other branches
  1. 2.0.x src/DraggableViews.php \Drupal\draggableviews\DraggableViews::getParent()

Get parent by index.

File

src/DraggableViews.php, line 66

Class

DraggableViews
Class DraggableViews.

Namespace

Drupal\draggableviews

Code

public function getParent($index) {
  return isset($this->view->result[$index]->draggableviews_structure_parent) ? $this->view->result[$index]->draggableviews_structure_parent : 0;
}