You are here

public function SecurityAdvisory::isCoreAdvisory in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php \Drupal\system\SecurityAdvisories\SecurityAdvisory::isCoreAdvisory()

Whether the security advisory is for core or not.

Return value

bool TRUE if the advisory is for core, or FALSE otherwise.

File

core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php, line 184

Class

SecurityAdvisory
Provides a security advisory value object.

Namespace

Drupal\system\SecurityAdvisories

Code

public function isCoreAdvisory() : bool {
  return $this
    ->getProjectType() === 'core';
}