You are here

interface SubjectInterface in Changed Fields API 8

Interface SubjectInterface.

Hierarchy

Expanded class hierarchy of SubjectInterface

All classes that implement SubjectInterface

2 files declare their use of SubjectInterface
BasicUsageObserver.php in examples/changed_fields_basic_usage/src/BasicUsageObserver.php
Contains BasicUsageObserver.php.
ExtendedFieldComparatorObserver.php in examples/changed_fields_extended_field_comparator/src/ExtendedFieldComparatorObserver.php
Contains ExtendedFieldComparatorObserver.php.

File

src/SubjectInterface.php, line 15
Contains SubjectInterface.php.

Namespace

Drupal\changed_fields
View source
interface SubjectInterface {

  /**
   * Add observer to list.
   *
   * @param ObserverInterface $observer
   */
  public function addObserver(ObserverInterface $observer);

  /**
   * Remove observer from list.
   *
   * @param ObserverInterface $observer
   */
  public function removeObserver(ObserverInterface $observer);

  /**
   *  Notify all registered observers if needed.
   *
   * @param NodeInterface $node
   */
  public function checkNodeFields(NodeInterface $node);

  /**
   * Returns node object.
   */
  public function getNode();

  /**
   * Returns changed fields.
   */
  public function getChangedFields();

}

Members

Namesort descending Modifiers Type Description Overrides
SubjectInterface::addObserver public function Add observer to list. 1
SubjectInterface::checkNodeFields public function Notify all registered observers if needed. 1
SubjectInterface::getChangedFields public function Returns changed fields. 1
SubjectInterface::getNode public function Returns node object. 1
SubjectInterface::removeObserver public function Remove observer from list. 1