public function DraggableViews::getParent in DraggableViews 2.0.x
Same name and namespace in other branches
- 8 src/DraggableViews.php \Drupal\draggableviews\DraggableViews::getParent()
Get parent by index.
File
- src/
DraggableViews.php, line 66
Class
- DraggableViews
- Class DraggableViews.
Namespace
Drupal\draggableviewsCode
public function getParent($index) {
return isset($this->view->result[$index]->draggableviews_structure_parent) ? $this->view->result[$index]->draggableviews_structure_parent : 0;
}