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

Breadcrumb

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

function Manifest::isExtensionFor

File

vendor/phar-io/manifest/src/values/Manifest.php, line 79

Class

Manifest

Namespace

PharIo\Manifest

Code

public function isExtensionFor(ApplicationName $application, ?Version $version = null) : bool {
    if (!$this->isExtension()) {
        return false;
    }
    
    /** @var Extension $type */
    $type = $this->type;
    if ($version !== null) {
        return $type->isCompatibleWith($application, $version);
    }
    return $type->isExtensionFor($application);
}

API Navigation

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