. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; /** * SOURCE_PUBLICATION_FACTS := {Size=1:248} * When and where the record was created. For published works, this includes information such as * the city of publication, name of the publisher, and year of publication. * For an unpublished work, it includes the date the record was created and the place where it was * created. For example, the county and state of residence of a person making a declaration for a * pension or the city and state of residence of the writer of a letter. */ class SourcePublicationFacts extends AbstractElement { /** * Display the value of this type of element. * * @param string $value * @param Tree $tree * * @return string */ public function value(string $value, Tree $tree): string { $canonical = $this->canonical($value); return $this->valueAutoLink($canonical); } }