Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / search / src / Plugin / migrate / destination / EntitySearchPage.php
1 <?php
2
3 namespace Drupal\search\Plugin\migrate\destination;
4
5 use Drupal\Core\Entity\EntityInterface;
6 use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
7 use Drupal\migrate\Row;
8
9 /**
10  * @MigrateDestination(
11  *   id = "entity:search_page"
12  * )
13  */
14 class EntitySearchPage extends EntityConfigBase {
15
16   /**
17    * Updates the entity with the contents of a row.
18    *
19    * @param \Drupal\Core\Entity\EntityInterface $entity
20    *   The search page entity.
21    * @param \Drupal\migrate\Row $row
22    *   The row object to update from.
23    */
24   protected function updateEntity(EntityInterface $entity, Row $row) {
25     $entity->setPlugin($row->getDestinationProperty('plugin'));
26     $entity->getPlugin()->setConfiguration($row->getDestinationProperty('configuration'));
27   }
28
29 }