public function WebformAddonsManager::getProjects in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformAddonsManager.php \Drupal\webform\WebformAddonsManager::getProjects()
Get add-on projects.
Parameters
string|null $category: (optional) Category to filter project by.
Return value
array An associative array of add-on projects.
Overrides WebformAddonsManagerInterface::getProjects
1 call to WebformAddonsManager::getProjects()
- WebformAddonsManager::getThirdPartySettings in src/
WebformAddonsManager.php - Get add-on projects that support third party settings.
File
- src/
WebformAddonsManager.php, line 33
Class
- WebformAddonsManager
- Webform add-ons manager.
Namespace
Drupal\webformCode
public function getProjects($category = NULL) {
$this
->initProjects();
$projects = $this->projects;
if ($category) {
foreach ($projects as $project_name => $project) {
if ($project['category'] !== $category) {
unset($projects[$project_name]);
}
}
}
return $projects;
}