You are here

public function RealisticDummyContentFieldModifier::modify in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::modify()
  2. 7.2 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 165

Class

RealisticDummyContentFieldModifier
Field modifier class.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function modify() {
  $attributes = $this
    ->getAttributes();
  foreach ($attributes as $attribute) {
    $attribute
      ->change();
  }
}