Esensi\Model\Traits\PurgingModelTrait::isPurgeable PHP Method

isPurgeable() public method

Returns whether the attribute is purgeable.
public isPurgeable ( string $attribute ) : boolean
$attribute string name
return boolean
    public function isPurgeable($attribute)
    {
        return $this->getPurging() && in_array($attribute, $this->getPurgeable());
    }