public function SecurityAdvisory::isCoreAdvisory in Drupal 10
Same name and namespace in other branches
- 9 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\SecurityAdvisoriesCode
public function isCoreAdvisory() : bool {
return $this
->getProjectType() === 'core';
}