3 namespace Drupal\system\Plugin\migrate\destination;
5 use Drupal\Core\Entity\EntityInterface;
6 use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
10 * id = "entity:date_format"
13 class EntityDateFormat extends EntityConfigBase {
18 * @param \Drupal\Core\Datetime\DateFormatInterface $entity
21 protected function updateEntityProperty(EntityInterface $entity, array $parents, $value) {
22 if ($parents[0] == 'pattern') {
23 $entity->setPattern($value);
26 parent::updateEntityProperty($entity, $parents, $value);