abstract class Observer in Changed Fields API 8
Class Observer.
Hierarchy
- class \Drupal\changed_fields\Observer implements ObserverInterface
Expanded class hierarchy of Observer
2 files declare their use of Observer
- 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/
Observer.php, line 13 - Contains Observer.php.
Namespace
Drupal\changed_fieldsView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Observer:: |
private | property | ||
Observer:: |
public | function |
Method to get observer id. Overrides ObserverInterface:: |
|
Observer:: |
abstract public | function |
Update method with info about event. Overrides ObserverInterface:: |
2 |
Observer:: |
public | function |