interface SubjectInterface in Changed Fields API 8
Interface SubjectInterface.
Hierarchy
- interface \Drupal\changed_fields\SubjectInterface
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_fieldsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SubjectInterface:: |
public | function | Add observer to list. | 1 |
SubjectInterface:: |
public | function | Notify all registered observers if needed. | 1 |
SubjectInterface:: |
public | function | Returns changed fields. | 1 |
SubjectInterface:: |
public | function | Returns node object. | 1 |
SubjectInterface:: |
public | function | Remove observer from list. | 1 |