protected function EntityDateFormat::updateEntityProperty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Plugin/migrate/destination/EntityDateFormat.php \Drupal\system\Plugin\migrate\destination\EntityDateFormat::updateEntityProperty()
Parameters
\Drupal\Core\Datetime\DateFormatInterface $entity: The date entity.
Overrides EntityConfigBase::updateEntityProperty
File
- core/
modules/ system/ src/ Plugin/ migrate/ destination/ EntityDateFormat.php, line 26 - Contains \Drupal\system\Plugin\migrate\destination\EntityDateFormat.
Class
- EntityDateFormat
- Plugin annotation @MigrateDestination( id = "entity:date_format" )
Namespace
Drupal\system\Plugin\migrate\destinationCode
protected function updateEntityProperty(EntityInterface $entity, array $parents, $value) {
if ($parents[0] == 'pattern') {
$entity
->setPattern($value);
}
else {
parent::updateEntityProperty($entity, $parents, $value);
}
}