. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; /** * SUBMITTER_TEXT:= {Size=1:248} * Comments or opinions from the submitter. */ class SubmitterText extends AbstractElement { /** * Convert a value to a canonical form. * * @param string $value * * @return string */ public function canonical(string $value): string { // Browsers use MS-DOS line endings in multi-line data. return strtr($value, ["\r\n" => "\n", "\r" => "\n"]); } /** * An edit control for this data. * * @param string $id * @param string $name * @param string $value * @param Tree $tree * * @return string */ public function edit(string $id, string $name, string $value, Tree $tree): string { return $this->editTextArea($id, $name, $value); } }