public function hideInList() { // Hide this command in the list if the project is not Drupal. $projectRoot = $this->getProjectRoot(); if ($projectRoot) { if (!Drupal::isDrupal($projectRoot . '/' . LocalProject::REPOSITORY_DIR)) { return true; } } return parent::hideInList(); }