public function NodeSubject::addObserver in Changed Fields API 8
Add observer to list.
Parameters
ObserverInterface $observer:
Overrides SubjectInterface::addObserver
File
- src/
NodeSubject.php, line 60 - Contains NodeSubject.php.
Class
- NodeSubject
- Class NodeSubject.
Namespace
Drupal\changed_fieldsCode
public function addObserver(ObserverInterface $observer) {
$this->observers[$observer
->getId()] = $observer;
}