private function Projects::buildProjectInfo in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 src/Agent/Action/Projects.php \Drupal\drd_agent\Agent\Action\Projects::buildProjectInfo()
Build project info array which is common across Drupal core versions.
Parameters
array $projects: List of projects to which a new project get appended.
string $type: Type of the project (core, module, theme, etc.).
string $name: Name of the project.
\Drupal\Core\Extension\Extension $extension: Object with further details about the project.
1 call to Projects::buildProjectInfo()
- Projects::execute in src/
Agent/ Action/ Projects.php - Execute an action.
File
- src/
Agent/ Action/ Projects.php, line 64
Class
- Projects
- Provides a 'Projects' code.
Namespace
Drupal\drd_agent\Agent\ActionCode
private function buildProjectInfo(array &$projects, $type, $name, $extension) {
/** @noinspection PhpUndefinedFieldInspection */
$projects[] = [
'name' => $name,
'type' => $type,
'status' => $extension->status,
'info' => $extension->info,
];
}