Location::setName - jcobban/Genealogy GitHub Wiki

$location->setName($newName)

Up: class Location

This method changes the descriptive name of the Location. This extends Record::setName.

Changing the name of a location may require recalculating the sort value. If the short name was previously the same as the location name then the short name is also changed to the new value. The nominal index of locations is updated to reflect the new name of the location.

The return value is a string containing the former contents of the location field.

Next: $location->getNotes()