public function NodeSubject::__construct in Changed Fields API 8.2
Same name and namespace in other branches
- 8 src/NodeSubject.php \Drupal\changed_fields\NodeSubject::__construct()
Parameters
NodeInterface $node:
string $fieldComparatorPluginId:
File
- src/
NodeSubject.php, line 44 - Contains NodeSubject.php.
Class
- NodeSubject
- Class NodeSubject.
Namespace
Drupal\changed_fieldsCode
public function __construct(NodeInterface $node, $fieldComparatorPluginId) {
$this->node = $node;
$this->changedFields = [];
$this->fieldComparatorPlugin = \Drupal::service('plugin.manager.changed_fields.field_comparator')
->createInstance($fieldComparatorPluginId);
}