3 namespace Drupal\search\Plugin\migrate\destination;
5 use Drupal\Core\Entity\EntityInterface;
6 use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
7 use Drupal\migrate\Row;
10 * @MigrateDestination(
11 * id = "entity:search_page"
14 class EntitySearchPage extends EntityConfigBase {
17 * Updates the entity with the contents of a row.
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.
24 protected function updateEntity(EntityInterface $entity, Row $row) {
25 $entity->setPlugin($row->getDestinationProperty('plugin'));
26 $entity->getPlugin()->setConfiguration($row->getDestinationProperty('configuration'));