You are here

public function InstallablePlugin::getInstalledId in Markdown 8.2

Retrieves the installed library or plugin identifier.

Return value

string The installed identifier.

File

src/Annotation/InstallablePlugin.php, line 33

Class

InstallablePlugin
Base annotation for "installable" plugins.

Namespace

Drupal\markdown\Annotation

Code

public function getInstalledId() {
  if (($installed = $this
    ->getInstalledLibrary()) && ($id = $installed
    ->getId())) {
    return $id;
  }
  return $this
    ->getId();
}