Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 3 |
EntitySearchPage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
updateEntity | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\search\Plugin\migrate\destination\EntitySearchPage. | |
*/ | |
namespace Drupal\search\Plugin\migrate\destination; | |
use Drupal\Core\Entity\EntityInterface; | |
use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase; | |
use Drupal\migrate\Row; | |
/** | |
* @MigrateDestination( | |
* id = "entity:search_page" | |
* ) | |
*/ | |
class EntitySearchPage extends EntityConfigBase { | |
/** | |
* Updates the entity with the contents of a row. | |
* | |
* @param \Drupal\Core\Entity\EntityInterface $entity | |
* The search page entity. | |
* @param \Drupal\migrate\Row $row | |
* The row object to update from. | |
*/ | |
protected function updateEntity(EntityInterface $entity, Row $row) { | |
$entity->setPlugin($row->getDestinationProperty('plugin')); | |
$entity->getPlugin()->setConfiguration($row->getDestinationProperty('configuration')); | |
} | |
} |