You are here

ObserverInterface.php in Changed Fields API 8

Same filename and directory in other branches
  1. 8.3 src/ObserverInterface.php
  2. 8.2 src/ObserverInterface.php

File

src/ObserverInterface.php
View source
<?php

/**
 * @file
 * Contains SubjectInterface.php.
 */
namespace Drupal\changed_fields;


/**
 * Interface ObserverInterface.
 */
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();

}

Interfaces

Namesort descending Description
ObserverInterface Interface ObserverInterface.