function DevelCommands::event in Devel 8.2
Same name and namespace in other branches
- 8.3 src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::event()
- 8 src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::event()
- 4.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::event()
List implementations of a given event and optionally edit one.
@command devel:event
@usage devel-event Pick a Kernel event, then pick an implementation, and then view its source code. @usage devel-event kernel.terminate Pick a terminate subscribers implementation and view its source code. @aliases fne,fn-event,event
Parameters
$event The name of the event to explore. If omitted, a list of events is shown.:
$implementation The name of the implementation to show. Usually omitted.:
File
- src/
Commands/ DevelCommands.php, line 130
Class
- DevelCommands
- For commands that are parts of modules, Drush expects to find commandfiles in __MODULE__/src/Commands, and the namespace is Drupal/__MODULE__/Commands.
Namespace
Drupal\devel\CommandsCode
function event($event, $implementation) {
$info = $this
->codeLocate($implementation);
$exec = drush_get_editor();
drush_shell_exec_interactive($exec, $info['file']);
}