You are here

public function Subscriber::getChanges in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getChanges()
  2. 8 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getChanges()

Returns the changes.

Return value

array The subscriber changes.

Overrides SubscriberInterface::getChanges

File

src/Entity/Subscriber.php, line 181

Class

Subscriber
Defines the simplenews subscriber entity.

Namespace

Drupal\simplenews\Entity

Code

public function getChanges() {
  return unserialize($this
    ->get('changes')->value);
}