You are here

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_fieldset
View 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

Namesort descending Modifiers Type Description Overrides
ArrayDataItemIterator::getChildren public function Get children.
ArrayDataItemIterator::hasChildren public function Check if the item has children.