protected function EntityDateFormat::updateEntityProperty in Drupal 8
Same name and namespace in other branches
- 9 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 21
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);
}
}