protected function Replicator::dispatchEventCloneEntityFields in Replicate 8
Fires events for each field of a fieldable entity.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $clone: The cloned fieldable entity.
1 call to Replicator::dispatchEventCloneEntityFields()
- Replicator::cloneEntity in src/
Replicator.php - Clone a entity without saving.
File
- src/
Replicator.php, line 206
Class
- Replicator
- Class Replicator. Manages the replication of an entity.
Namespace
Drupal\replicateCode
protected function dispatchEventCloneEntityFields(FieldableEntityInterface $clone) {
foreach ($clone
->getFieldDefinitions() as $field_name => $field_definition) {
$this
->dispatchEventCloneEntityField($clone, $field_name, $field_definition);
}
}