Piwik\Plugins\CoreConsole\Commands\GenerateSettings::getPluginName PHP Method

getPluginName() protected method

protected getPluginName ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $settingsType, $settingsFile ) : array
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$settingsType string
return array
    protected function getPluginName(InputInterface $input, OutputInterface $output, $settingsType, $settingsFile)
    {
        $pluginNames = $this->getPluginNamesHavingNotSpecificFile($settingsFile);
        $invalidName = 'You have to enter the name of an existing plugin which does not already have ' . $settingsType;
        return $this->askPluginNameAndValidate($input, $output, $pluginNames, $invalidName);
    }