public function Subscriber::setSyncing in Simplenews 8
Sets whether the subscriber is syncing from/to the corresponding user.
Parameters
bool $sync: (optional) Whether the subscriber is syncing. Defaults to TRUE.
Overrides SynchronizableEntityTrait::setSyncing
File
- src/
Entity/ Subscriber.php, line 182
Class
- Subscriber
- Defines the simplenews subscriber entity.
Namespace
Drupal\simplenews\EntityCode
public function setSyncing($sync = TRUE) {
static::$syncing = $sync;
}