I'm working on a plugin with its own element type, I'm trying to add custom statuses to the element type. What is the best way to proceed? I have hasStatuses set to true and getStatuses is where I would set them.. But what should the array look like thats returned?
UserElementType returns this:
/**
* Returns all of the possible statuses that elements of this type may have.
*
* @return array|null
*/
public function getStatuses()
{
return array(
UserStatus::Active => Craft::t('Active'),
UserStatus::Pending => Craft::t('Pending'),
UserStatus::Locked => Craft::t('Locked'),
UserStatus::Suspended => Craft::t('Suspended'),
UserStatus::Archived => Craft::t('Archived')
);
}