You are here

public function EntitySubject::detach in Changed Fields API 8.3

File

src/EntitySubject.php, line 68

Class

EntitySubject
Implements content entity subject.

Namespace

Drupal\changed_fields

Code

public function detach(\SplObserver $observer) {
  if (!$observer instanceof ObserverInterface) {
    throw new \InvalidArgumentException('Observer must implement ObserverInterface interface.');
  }
  unset($this->observers[spl_object_hash($observer)]);
}