<?php

namespace App\Transformers\Inbound\Web;

use App\Transformers\Datum;
use App\Transformers\Inbound\AbstractTransformer;

class Event extends AbstractTransformer
{

    protected function getExtraFields( Datum $datum )
    {

        return [
            'hidden' => (bool) $datum->hidden, // TODO: Why is this an array?!
        ];

    }

}

<?php

namespace App\Transformers\Inbound\Web;

use App\Transformers\Datum;
use App\Transformers\Inbound\AbstractTransformer;

class Event extends AbstractTransformer
{

    protected function getExtraFields( Datum $datum )
    {

        return [
            'hidden' => (bool) $datum->hidden, // TODO: Why is this an array?!
            'type' => $datum->event_type,
        ];

    }

}

Fix event import from new website
Fix event import from new website

Accounts for a field rename in A17's internal "Ticket #1007", which
is currently commit 43e067d28c21e4d8e7e999aea04543754e9194b0.

I say "currently" because we might end up rewriting the commit history
of that repo to flatten it out before open-sourcing – it's really hard
to follow as-is, since ticket branches aren't rebased before being
merged.
