Merge remote-tracking branch 'origin/muammertop' into muammertop

This commit is contained in:
Muammer Top 2020-12-24 10:05:17 +03:00
commit c712517597

View File

@ -2,6 +2,7 @@
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
use Visiosoft\CatsModule\Category\CategoryModel; use Visiosoft\CatsModule\Category\CategoryModel;
use function foo\func;
class AdvTableColumns class AdvTableColumns
{ {
@ -47,7 +48,14 @@ class AdvTableColumns
], ],
'country' => [ 'country' => [
'class' => 'advs-country', 'class' => 'text-center',
'wrapper' => '<strong><span class="text-muted">{value.city}</span><br>{value.country}</strong>',
'value' => [
'city' => function (EntryInterface $entry) {
return $entry->getCity();
},
'country' => 'country',
]
], ],
'created_by' => [ 'created_by' => [
'value' => 'entry.created_by.name', 'value' => 'entry.created_by.name',