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

Breadcrumb

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

function ManifestElement::getChildrenByName

3 calls to ManifestElement::getChildrenByName()
BundlesElement::getComponentElements in vendor/phar-io/manifest/src/xml/BundlesElement.php
CopyrightElement::getAuthorElements in vendor/phar-io/manifest/src/xml/CopyrightElement.php
PhpElement::getExtElements in vendor/phar-io/manifest/src/xml/PhpElement.php

File

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

Class

ManifestElement

Namespace

PharIo\Manifest

Code

protected function getChildrenByName(string $elementName) : DOMNodeList {
    $elementList = $this->element
        ->getElementsByTagNameNS(self::XMLNS, $elementName);
    if ($elementList->length === 0) {
        throw new ManifestElementException(sprintf('Element(s) %s missing', $elementName));
    }
    return $elementList;
}

API Navigation

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