public function ContributorName::onChange in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/ContributorName.php \Drupal\bibcite_entity\ContributorName::onChange()
React to changes to a child property or item.
Note that this is invoked after any changes have been applied.
Parameters
$name: The name of the property or the delta of the list item which is changed.
Overrides ItemList::onChange
File
- modules/
bibcite_entity/ src/ ContributorName.php, line 96
Class
- ContributorName
- Contributor name computed field.
Namespace
Drupal\bibcite_entityCode
public function onChange($delta) {
/* @see \Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList::onChange */
$this
->updateContributorEntity($this->list[$delta]->value);
parent::onChange($delta);
}