We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7bc333 commit 4786799Copy full SHA for 4786799
src/Table/Column/Flag.php
@@ -4,6 +4,7 @@
4
5
namespace Atk4\Ui\Table\Column;
6
7
+use Atk4\Data\Field;
8
use Atk4\Data\Model;
9
use Atk4\Ui\Table;
10
@@ -18,7 +19,7 @@ class Flag extends Table\Column
18
19
/** @var string|null Optional name of model field which contains country names. */
20
public $name_field;
21
- public function getHtmlTags(Model $row, $field)
22
+ public function getHtmlTags(Model $row, ?Field $field): array
23
{
24
$countryCode = $row->get($this->code_field);
25
$countryName = $this->name_field ? $row->get($this->name_field) : null;
0 commit comments