Skip to content
Snippets Groups Projects

Sketch in the normalizer

Compare and
15 files
+ 257
195
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Drupal\project_browser\Activator;
use Drupal\project_browser\ProjectBrowser\Project;
use Symfony\Component\HttpFoundation\Response;
/**
* Defines an interface for services which can activate projects.
@@ -48,11 +47,9 @@ interface ActivatorInterface {
* @param \Drupal\project_browser\ProjectBrowser\Project $project
* The project to activate.
*
* @return \Symfony\Component\HttpFoundation\Response|null
* Optionally, a response that should be presented to the user in Project
* Browser. This could be a set of additional instructions to display in a
* modal, for example, or a redirect to a configuration form.
* @return \Drupal\Core\Ajax\CommandInterface[]|null
* Optionally, an array of AJAX commands to run on the front end.
*/
public function activate(Project $project): ?Response;
public function activate(Project $project): ?array;
}
Loading