function SecurityAdvisory::getProjectType

Same name in other branches
  1. 9 core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php \Drupal\system\SecurityAdvisories\SecurityAdvisory::getProjectType()
  2. 10 core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php \Drupal\system\SecurityAdvisories\SecurityAdvisory::getProjectType()

Gets the type of project associated with the advisory.

Return value

string The project type.

1 call to SecurityAdvisory::getProjectType()
SecurityAdvisory::isCoreAdvisory in core/modules/system/src/SecurityAdvisories/SecurityAdvisory.php
Whether the security advisory is for core or not.

File

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

Class

SecurityAdvisory
Provides a security advisory value object.

Namespace

Drupal\system\SecurityAdvisories

Code

public function getProjectType() : string {
    return $this->type;
}

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