protected function DemoTaxonomyTerm::getEntry in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.2 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.3 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.4 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.5 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.6 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.7 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 8.8 modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 10.3.x modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 10.0.x modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 10.1.x modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
- 10.2.x modules/custom/social_demo/src/DemoTaxonomyTerm.php \Drupal\social_demo\DemoTaxonomyTerm::getEntry()
Makes an array with data of an entity.
Parameters
array $item: Array with items.
Return value
array Returns an array.
Overrides DemoContent::getEntry
1 call to DemoTaxonomyTerm::getEntry()
- DemoTaxonomyTerm::createContent in modules/
custom/ social_demo/ src/ DemoTaxonomyTerm.php - Creates content.
File
- modules/
custom/ social_demo/ src/ DemoTaxonomyTerm.php, line 74
Class
- DemoTaxonomyTerm
- Class DemoTaxonomyTerm.
Namespace
Drupal\social_demoCode
protected function getEntry(array $item) {
$entry = [
'uuid' => $item['uuid'],
'name' => $item['name'],
'vid' => $item['vid'],
'created' => \Drupal::time()
->getRequestTime(),
];
return $entry;
}