You are here

public function MigrateDestinationFlagSimple::__toString in Migrate Extras 7.2

Same name and namespace in other branches
  1. 6.2 flag.inc \MigrateDestinationFlagSimple::__toString()

Derived classes must implement __toString().

Return value

string Description of the destination being migrated into

Overrides MigrateDestination::__toString

File

./flag.inc, line 17
Flag module integration

Class

MigrateDestinationFlagSimple
Destination class implementing when you want just an insert into flag_content table.

Code

public function __toString() {
  $flag = flag_get_flag(NULL, $this->fid);
  return t('flag (!flag)', array(
    '!flag' => $flag->name,
  ));
}