function DevelCommands::getContainer
Same name in this branch
- 5.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::getContainer()
Same name in other branches
- 8.x-1.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::getContainer()
- 4.x src/Commands/DevelCommands.php \Drupal\devel\Commands\DevelCommands::getContainer()
Gets the container.
Return value
\Drupal\Component\DependencyInjection\ContainerInterface The container.
1 call to DevelCommands::getContainer()
- DevelCommands::services in src/
Drush/ Commands/ DevelCommands.php - Get a list of available container services.
File
-
src/
Drush/ Commands/ DevelCommands.php, line 80
Class
Namespace
Drupal\devel\Drush\CommandsCode
public function getContainer() : ContainerInterface {
return Drush::getContainer()->get('service_container');
}