protected function GameBaseball::generateMachineName in Migrate 7.2
Construct the machine name from the source file name.
Overrides MigrationBase::generateMachineName
File
- migrate_example_baseball/
migrate_example_baseball.migrate.inc, line 132 - A baseball game migration example.
Class
- GameBaseball
- A migration that is reused for each source CSV file.
Code
protected function generateMachineName($class_name = NULL) {
return drupal_strtolower(pathinfo($this->arguments['source_file'], PATHINFO_FILENAME));
}