EntityDateFormat.php in Zircon Profile 8
File
core/modules/system/src/Plugin/migrate/destination/EntityDateFormat.php
View source
<?php
namespace Drupal\system\Plugin\migrate\destination;
use Drupal\Core\Entity\EntityInterface;
use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
class EntityDateFormat extends EntityConfigBase {
protected function updateEntityProperty(EntityInterface $entity, array $parents, $value) {
if ($parents[0] == 'pattern') {
$entity
->setPattern($value);
}
else {
parent::updateEntityProperty($entity, $parents, $value);
}
}
}
Classes
Name |
Description |
EntityDateFormat |
Plugin annotation
@MigrateDestination(
id = "entity:date_format"
) |