public function MigrateDestinationTermMachineName::findMatchingTerm in Taxonomy Machine Name 7
Attempt to find a term that has the same machine name.
Parameters
object $term: A taxonomy term object with at least the machine name and vid properties defined.
Return value
object A matching taxonomy term object if found, otherwise FALSE.
Overrides MigrateDestinationTerm::findMatchingTerm
File
- ./
taxonomy_machine_name.migrate.inc, line 131 - Taxonomy Machine Name Migrate Module File.
Class
- MigrateDestinationTermMachineName
- Class MigrateDestinationTermMachineName
Code
public function findMatchingTerm($term) {
$candidate = taxonomy_term_machine_name_load(trim($term->machine_name), $term->vid);
if (is_object($candidate)) {
return $candidate;
}
else {
return FALSE;
}
}