Skip to content
Snippets Groups Projects
Commit 5f60703e authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #19182 [fid] display newsletter in profile

* set method get newsletter bool
parent 6578877b
No related merge requests found
......@@ -409,6 +409,14 @@ class User
}
}
/**
* @return boolean
*/
public function isNewsletter(): bool
{
return !empty($this->getData()["newsletter"]) ? $this->getData()["newsletter"] : 0;
}
/**
* @param Address[] $addresses
*/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment