ProjectSecurityRequirement
final class ProjectSecurityRequirement (View source)
| internal | This class implements logic to determine security coverage for Drupal core according to Drupal core security policy. It should not be called directly. |
Class for generating a project's security requirement.
Traits
Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.
Properties
| protected TranslationInterface | $stringTranslation | The string translation service. |
from StringTranslationTrait |
| protected string|null | $projectTitle | The project title. |
Methods
Translates a string to the current language or to a given language.
Formats a string containing a count of items.
Returns the number of plurals supported by a given language.
Gets the string translation service.
Creates a ProjectSecurityRequirement object from project data.
Gets the security coverage requirement, if any.
Details
protected TranslatableMarkup
t(string $string, array $args = [], array $options = [])
Translates a string to the current language or to a given language.
See \Drupal\Core\StringTranslation\TranslatableMarkup::__construct() for important security information and usage guidelines.
In order for strings to be localized, make them available in one of the ways supported by the
protected
formatPlural($count, $singular, $plural, array $args = [], array $options = [])
Formats a string containing a count of items.
protected
getNumberOfPlurals($langcode = NULL)
Returns the number of plurals supported by a given language.
protected TranslationInterface
getStringTranslation()
Gets the string translation service.
$this
setStringTranslation(TranslationInterface $translation)
Sets the string translation service to use.
static ProjectSecurityRequirement
createFromProjectDataAndSecurityCoverageInfo(array $project_data, array $security_coverage_info)
Creates a ProjectSecurityRequirement object from project data.
array
getRequirement()
Gets the security coverage requirement, if any.