Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStreamContainerIterator.php

function vfsStreamContainerIterator::key

returns the name of the current child

Return value

string

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamContainerIterator.php, line 68

Class

vfsStreamContainerIterator
Iterator for children of a directory container.

Namespace

org\bovigo\vfs

Code

public function key() {
    $child = current($this->children);
    if (false === $child) {
        return null;
    }
    return $child->getName();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal