NerdsAndCompany\Schematic\Services\Plugins::installPluginByHandle PHP Method

installPluginByHandle() protected method

Installs plugin by handle.
protected installPluginByHandle ( string $handle )
$handle string
    protected function installPluginByHandle($handle)
    {
        Craft::log(Craft::t('Installing plugin {handle}', ['handle' => $handle]));
        try {
            $this->getPluginService()->installPlugin($handle);
        } catch (\Exception $e) {
            $this->addError($e->getMessage());
        }
    }