You are here

public function PriorityList::current in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/PriorityList.php \Zend\Stdlib\PriorityList::current()

File

vendor/zendframework/zend-stdlib/src/PriorityList.php, line 201

Class

PriorityList

Namespace

Zend\Stdlib

Code

public function current() {
  $this->sorted || $this
    ->sort();
  $node = current($this->items);
  return $node ? $node['data'] : false;
}