You are here

public function CFNodeSubject::addObserver in Changed Fields API 7

Same name and namespace in other branches
  1. 7.2 includes/changed_fields.core.inc \CFNodeSubject::addObserver()

Add observer to list.

Parameters

CFObserver $observer:

Overrides CFSubject::addObserver

File

includes/changed_fields.core.inc, line 124
changed_fields.core.inc file.

Class

CFNodeSubject
Class CFNodeSubject.

Code

public function addObserver(CFObserver $observer) {
  $this->observers[$observer
    ->getId()] = $observer;
}