public function InstallablePlugin::getInstalledLibrary in Markdown 8.2
Retrieves the installed library.
Return value
\Drupal\markdown\Annotation\InstallableLibrary|void The installed library.
2 calls to InstallablePlugin::getInstalledLibrary()
- InstallablePlugin::getInstalledId in src/
Annotation/ InstallablePlugin.php - Retrieves the installed library or plugin identifier.
- InstallablePlugin::isPreferredLibraryInstalled in src/
Annotation/ InstallablePlugin.php - Indicates whether the preferred library is installed.
File
- src/
Annotation/ InstallablePlugin.php, line 46
Class
- InstallablePlugin
- Base annotation for "installable" plugins.
Namespace
Drupal\markdown\AnnotationCode
public function getInstalledLibrary() {
return current(array_filter($this->libraries, function ($library) {
return !$library->requirementViolations;
})) ?: NULL;
}