private function WeatherCommands::csv in Weather 8
Same name and namespace in other branches
- 2.0.x src/Commands/WeatherCommands.php \Drupal\weather\Commands\WeatherCommands::csv()
Open file.
1 call to WeatherCommands::csv()
- WeatherCommands::read in src/
Commands/ WeatherCommands.php - Read.
File
- src/
Commands/ WeatherCommands.php, line 64
Class
- WeatherCommands
- Drush command to add support to weather module (import weather csv file).
Namespace
Drupal\weather\CommandsCode
private function csv() {
return fopen(drupal_get_path('module', 'weather') . '/files/weather_data.csv', 'r');
}