You are here

public function ListImportables::buildRow in Default Content 8

1 call to ListImportables::buildRow()
ListImportables::render in src/ListImportables.php

File

src/ListImportables.php, line 36
Contains \Drupal\defaultcontent\ListImportables.

Class

ListImportables
Converts a node to a config entity

Namespace

Drupal\defaultcontent

Code

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;
}