Back to PluginAdapter class

Method prepareDiscoverInstall

public void
prepareDiscoverInstall
()
Prepares the adapter for a discover_install task
Returns
  • void
Since
  • 3.4
Class: PluginAdapter
Project: Joomla

Method prepareDiscoverInstall - Source code

/**
 * Prepares the adapter for a discover_install task
 *
 * @return  void
 *
 * @since   3.4
 */
public function prepareDiscoverInstall()
{
    $client = ApplicationHelper::getClientInfo($this->extension->client_id);
    $basePath = $client->path . '/plugins/' . $this->extension->folder;
    $manifestPath = $basePath . '/' . $this->extension->element . '/' . $this->extension->element . '.xml';
    $this->parent->manifest = $this->parent->isManifest($manifestPath);
    $this->parent->setPath('manifest', $manifestPath);
    $this->setManifest($this->parent->getManifest());
}