}
/**
- * @param string $nameOnly
+ * @param boolean $nameOnly
* @return array
*/
- public function getList($nameOnly)
+ public function getList($nameOnly = false)
{
return $this->getExtensions($this->extension, $nameOnly);
}
$module = $this->getModule($moduleName);
$modulePath = $module->getPath();
if ($moduleFile) {
- $this->site->loadLegacyFile($modulePath . '/'. $moduleFile);
+ $this->site->loadLegacyFile($modulePath . '/' . $moduleFile);
} else {
$this->site->loadLegacyFile($modulePath . '/' . $module->getName() . '.module');
}
{
$module = $this->getModule($moduleName);
- return $module->getPath() . '/src/Plugin/'.$pluginType;
+ return $module->getPath() . '/src/Plugin/' . $pluginType;
}
public function getDrupalExtension($type, $name)
public function checkExtensions(array $extensions, $type = 'module')
{
$checkextensions = [
- 'local_extensions' => [],
- 'drupal_extensions' => [],
- 'no_extensions' => [],
+ 'local_extensions' => [],
+ 'drupal_extensions' => [],
+ 'no_extensions' => [],
];
$local_extensions = $this->discoverExtension($type)