You are here

public function ComposerPackage::getInstallCommand in Markdown 8.2

Retrieves the CLI command used to install the library, if any.

Return value

string|void A install command to be used to install the library, if any.

Overrides InstallableLibrary::getInstallCommand

File

src/Annotation/ComposerPackage.php, line 65

Class

ComposerPackage
Annotation for providing an installable library via Composer.

Namespace

Drupal\markdown\Annotation

Code

public function getInstallCommand() {
  return 'composer require ' . $this->id;
}