public function RealisticDummyContentFieldModifier::modify in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::modify()
- 3.x api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::modify()
Modify the entity.
Subclasses of RealisticDummyContentEntityBase need to override this function to perform modifications on the entity.
Overrides RealisticDummyContentEntityBase::modify
File
- api/
src/ includes/ RealisticDummyContentFieldModifier.php, line 157
Class
- RealisticDummyContentFieldModifier
- Field modifier class.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function modify() {
$attributes = $this
->getAttributes();
foreach ($attributes as $attribute) {
$attribute
->change();
}
}