You are here

Observer.php in Changed Fields API 8

Contains Observer.php.

File

src/Observer.php
View 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;
  }

}

Classes

Namesort descending Description
Observer Class Observer.