You are here

public function NodeSubject::attach in Changed Fields API 8.2

File

src/NodeSubject.php, line 53
Contains NodeSubject.php.

Class

NodeSubject
Class NodeSubject.

Namespace

Drupal\changed_fields

Code

public function attach(SplObserver $observer) {
  $this->observers[spl_object_hash($observer)] = $observer;
}