public function CFNodeSubject::addObserver in Changed Fields API 7.2
Same name and namespace in other branches
- 7 includes/changed_fields.core.inc \CFNodeSubject::addObserver()
Add observer to list.
Parameters
CFObserverInterface $observer: Observer object to add.
Overrides CFSubjectInterface::addObserver
File
- includes/
changed_fields.core.inc, line 158 - File contains core classes and interfaces.
Class
- CFNodeSubject
- Class CFNodeSubject.
Code
public function addObserver(CFObserverInterface $observer) {
$this->observers[$observer
->getId()] = $observer;
}