You are here

public function NodeSubject::removeObserver in Changed Fields API 8

Remove observer from list.

Parameters

ObserverInterface $observer:

Overrides SubjectInterface::removeObserver

File

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

Class

NodeSubject
Class NodeSubject.

Namespace

Drupal\changed_fields

Code

public function removeObserver(ObserverInterface $observer) {
  if (isset($this->observers[$observer
    ->getId()])) {
    unset($this->observers[$observer
      ->getId()]);
  }
}