You are here

protected function MigrationBase::generateMachineName in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 includes/base.inc \MigrationBase::generateMachineName()

By default, the migration machine name is the class name (with the Migration suffix, if present, stripped).

1 call to MigrationBase::generateMachineName()
MigrationBase::__construct in includes/base.inc
General initialization of a MigrationBase object.

File

includes/base.inc, line 405
Defines the base class for migration processes.

Class

MigrationBase
The base class for all objects representing distinct steps in a migration process. Most commonly these will be Migration objects which actually import data from a source into a Drupal destination, but by deriving classes directly from MigrationBase…

Code

protected function generateMachineName() {
  $class_name = get_class($this);
  return self::machineFromClass($class_name);
}