Observer.php in Changed Fields API 8
Contains Observer.php.
Namespace
Drupal\changed_fieldsFile
src/Observer.phpView source
<?php
/**
* @file
* Contains Observer.php.
*/
namespace Drupal\changed_fields;
/**
* Class Observer.
*/
abstract class Observer implements ObserverInterface {
/**
* @var string
*/
private $id;
/**
* @param $id
*/
public function __construct($id) {
$this->id = $id;
}
/**
* {@inheritdoc}
*/
public abstract function update(SubjectInterface $nodeSubject);
/**
* {@inheritdoc}
*/
public function getId() {
return $this->id;
}
}