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

Breadcrumb

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

function ManifestDocument::fromFile

1 call to ManifestDocument::fromFile()
ManifestLoader::fromFile in vendor/phar-io/manifest/src/ManifestLoader.php

File

vendor/phar-io/manifest/src/xml/ManifestDocument.php, line 30

Class

ManifestDocument

Namespace

PharIo\Manifest

Code

public static function fromFile(string $filename) : ManifestDocument {
    if (!is_file($filename)) {
        throw new ManifestDocumentException(sprintf('File "%s" not found', $filename));
    }
    return self::fromString(file_get_contents($filename));
}

API Navigation

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