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

Breadcrumb

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

function ManifestElement::getAttributeValue

13 calls to ManifestElement::getAttributeValue()
AuthorElement::getEmail in vendor/phar-io/manifest/src/xml/AuthorElement.php
AuthorElement::getName in vendor/phar-io/manifest/src/xml/AuthorElement.php
ComponentElement::getName in vendor/phar-io/manifest/src/xml/ComponentElement.php
ComponentElement::getVersion in vendor/phar-io/manifest/src/xml/ComponentElement.php
ContainsElement::getName in vendor/phar-io/manifest/src/xml/ContainsElement.php

... See full list

File

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

Class

ManifestElement

Namespace

PharIo\Manifest

Code

protected function getAttributeValue(string $name) : string {
    if (!$this->element
        ->hasAttribute($name)) {
        throw new ManifestElementException(sprintf('Attribute %s not set on element %s', $name, $this->element->localName));
    }
    return $this->element
        ->getAttribute($name);
}
RSS feed
Powered by Drupal