class ArrayDataItemIterator in Views Exposed Form Fieldset 8
Class ArrayDataItemIterator.
Hierarchy
- class \Drupal\views_ef_fieldset\ArrayDataItemIterator extends \ArrayIterator implements \RecursiveIterator
Expanded class hierarchy of ArrayDataItemIterator
File
- src/
ArrayDataItemIterator.php, line 13
Namespace
Drupal\views_ef_fieldsetView source
class ArrayDataItemIterator extends ArrayIterator implements RecursiveIterator {
/**
* Get children.
*
* @return \DataItemIterator
* The children.
*/
public function getChildren() {
$item = $this
->current();
return new ArrayDataItemIterator($item['children']);
}
/**
* Check if the item has children.
*
* @return bool
* True if it has children, false otherwise.
*/
public function hasChildren() {
$item = $this
->current();
return !empty($item['children']);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ArrayDataItemIterator:: |
public | function | Get children. | |
ArrayDataItemIterator:: |
public | function | Check if the item has children. |