You are here

interface ObserverInterface in Changed Fields API 8

Same name and namespace in other branches
  1. 8.3 src/ObserverInterface.php \Drupal\changed_fields\ObserverInterface
  2. 8.2 src/ObserverInterface.php \Drupal\changed_fields\ObserverInterface

Interface ObserverInterface.

Hierarchy

Expanded class hierarchy of ObserverInterface

All classes that implement ObserverInterface

File

src/ObserverInterface.php, line 13
Contains SubjectInterface.php.

Namespace

Drupal\changed_fields
View source
interface ObserverInterface {

  /**
   * Update method with info about event.
   *
   * It is called by NodeSubject when node fields have been changed.
   *
   * @param SubjectInterface $nodeSubject
   */
  public function update(SubjectInterface $nodeSubject);

  /**
   * Method to get observer id.
   */
  public function getId();

}

Members

Namesort descending Modifiers Type Description Overrides
ObserverInterface::getId public function Method to get observer id. 1
ObserverInterface::update public function Update method with info about event. 1