public function Agreement::agreeOnce in Agreement 8.2
Same name and namespace in other branches
- 3.0.x src/Entity/Agreement.php \Drupal\agreement\Entity\Agreement::agreeOnce()
Agreement frequency setting.
Return value
bool TRUE if the agreement is configured for users to agree only once.
File
- src/
Entity/ Agreement.php, line 68
Class
- Agreement
- Agreement entity.
Namespace
Drupal\agreement\EntityCode
public function agreeOnce() {
$settings = $this
->getSettings();
return $settings['frequency'] == -1 ? TRUE : FALSE;
}