Pimcore\Model\Object\Person::getNewsletterActive PHP Method

getNewsletterActive() public method

Get newsletterActive - Newsletter Active
public getNewsletterActive ( ) : boolean
return boolean
    public function getNewsletterActive()
    {
        $preValue = $this->preGetValue("newsletterActive");
        if ($preValue !== null && !\Pimcore::inAdmin()) {
            return $preValue;
        }
        $data = $this->newsletterActive;
        return $data;
    }