public function ListImportables::buildRow in Default Content 8
1 call to ListImportables::buildRow()
File
- src/
ListImportables.php, line 36 - Contains \Drupal\defaultcontent\ListImportables.
Class
- ListImportables
- Converts a node to a config entity
Namespace
Drupal\defaultcontentCode
public function buildRow(EntityInterface $entity, $module) {
$row['language']['data'] = $entity
->get('langcode');
$row['language']['module'] = $module;
$row['uuid']['data'] = $entity
->getUuid();
$row['type']['data'] = $entity
->get('type');
$row['title']['data'] = $entity
->get('title');
return $row;
}