public function InstallablePluginTrait::getVersionRequirements in Markdown 8.2
Retrieves requirements that contain "Version" constraints.
Return value
array
File
- src/
Annotation/ InstallablePluginTrait.php, line 197
Class
- InstallablePluginTrait
- Trait for adding installable plugin properties to annotations.
Namespace
Drupal\markdown\AnnotationCode
public function getVersionRequirements() {
return array_filter($this->requirements, function ($requirement) {
return in_array('Version', array_keys($requirement->constraints));
});
}