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

Breadcrumb

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

function ManifestElement::getChildByName

3 calls to ManifestElement::getChildByName()
ContainsElement::getExtensionElement in vendor/phar-io/manifest/src/xml/ContainsElement.php
CopyrightElement::getLicenseElement in vendor/phar-io/manifest/src/xml/CopyrightElement.php
RequiresElement::getPHPElement in vendor/phar-io/manifest/src/xml/RequiresElement.php

File

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

Class

ManifestElement

Namespace

PharIo\Manifest

Code

protected function getChildByName(string $elementName) : DOMElement {
    $element = $this->element
        ->getElementsByTagNameNS(self::XMLNS, $elementName)
        ->item(0);
    if (!$element instanceof DOMElement) {
        throw new ManifestElementException(sprintf('Element %s missing', $elementName));
    }
    return $element;
}

API Navigation

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