Is it possible, on a model, to get only the fields that were marked as required?
For example I have an entry which has just been saved and I can get it's content like:
$entry->getContent()->getAttributes()
But I need to filter it out by the only the fields that were required, because it already has a section assigned and is saved I thought this might be possible...I tried $entry->getRequiredFields()
but that didn't work.
So then I tried these to no avail
$entry->getContent()->getRequiredAttributes()
$entry->getContent()->getRequiredFields()
$entry->getRequiredAttributes()
Is this actually achievable? any help or pointers would be much appreciated! :)