getMatchingExtensionInfo example


  protected function getProjectExistingVersion(SecurityAdvisory $sa): ?string {
    if ($sa->isCoreAdvisory()) {
      return \Drupal::VERSION;
    }
    $extension_info = $this->getMatchingExtensionInfo($sa);
    return $extension_info['version'] ?? NULL;
  }

  /** * Determines if a security advisory is applicable for the current site. * * @param \Drupal\system\SecurityAdvisories\SecurityAdvisory $sa * The security advisory. * * @return bool * TRUE if the advisory is applicable for the current site, or FALSE * otherwise. */
Home | Imprint | This part of the site doesn't use cookies.