You are here

private function ProjectRelease::isReleaseType in Drupal 9

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);
}