function SecurityAdvisory::isCoreAdvisory

Same name in other branches
  1. 9 core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php \Drupal\system\SecurityAdvisories\SecurityAdvisory::isCoreAdvisory()
  2. 11.x 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';
}

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