You are here

protected function EntitySearchPage::updateEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php \Drupal\search\Plugin\migrate\destination\EntitySearchPage::updateEntity()

Updates the entity with the contents of a row.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The search page entity.

\Drupal\migrate\Row $row: The row object to update from.

Overrides EntityConfigBase::updateEntity

File

core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php, line 29
Contains \Drupal\search\Plugin\migrate\destination\EntitySearchPage.

Class

EntitySearchPage
Plugin annotation @MigrateDestination( id = "entity:search_page" )

Namespace

Drupal\search\Plugin\migrate\destination

Code

protected function updateEntity(EntityInterface $entity, Row $row) {
  $entity
    ->setPlugin($row
    ->getDestinationProperty('plugin'));
  $entity
    ->getPlugin()
    ->setConfiguration($row
    ->getDestinationProperty('configuration'));
}