function ProjectRelease::isReleaseType

Same name and namespace in other branches
  1. 9 core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::isReleaseType()
  2. 10 core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::isReleaseType()

Determines if the release is matches a type.

Parameters

string $type: The release type.

Return value

bool TRUE if the release matches the type, or FALSE otherwise.

3 calls to ProjectRelease::isReleaseType()
ProjectRelease::isInsecure in core/modules/update/src/ProjectRelease.php
Determines if the release is insecure.
ProjectRelease::isSecurityRelease in core/modules/update/src/ProjectRelease.php
Determines if the release is a security release.
ProjectRelease::isUnsupported in core/modules/update/src/ProjectRelease.php
Determines if the release is unsupported.

File

core/modules/update/src/ProjectRelease.php, line 234

Class

ProjectRelease
Provides a project release value object.

Namespace

Drupal\update

Code

private function isReleaseType(string $type) : bool {
    return $this->releaseTypes && in_array($type, $this->releaseTypes, TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.