2

I'll be polling an endpoint created with the element-api plugin which will trigger a concourse build. I need to include a timestamp the last time any entry was changed.

So I need something to go in the setHeader function:

HeaderHelper::setHeader([...])

Many thanks in advance!

1 Answer 1

1

If you've already got a reference to the entry, this should do it:

HeaderHelper::setHeader('MyHeader', $entry->dateUpdated);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.