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

Breadcrumb

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

function ElementCollection::importNodes

1 call to ElementCollection::importNodes()
ElementCollection::__construct in vendor/phar-io/manifest/src/xml/ElementCollection.php

File

vendor/phar-io/manifest/src/xml/ElementCollection.php, line 57

Class

ElementCollection
@template-implements Iterator<int,DOMElement>

Namespace

PharIo\Manifest

Code

private function importNodes(DOMNodeList $nodeList) : void {
    foreach ($nodeList as $node) {
        if (!$node instanceof DOMElement) {
            throw new ElementCollectionException(sprintf('\\DOMElement expected, got \\%s', get_class($node)));
        }
        $this->nodes[] = $node;
    }
}

API Navigation

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