. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; use function e; use function view; /** * NAME_PIECE_NICKNAME := {Size=1:30} * [ | , ] * A descriptive or familiar name used in connection with one's proper name. */ class NamePieceNickname extends AbstractElement { protected const MAX_LENGTH = 30; /** * 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 '
' . '' . view('edit/input-addon-keyboard', ['id' => $id]) . '
'; } }