protected function DemoNode::getEntry in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.2 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.3 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.4 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.5 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.7 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 8.8 modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 10.3.x modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 10.0.x modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 10.1.x modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
- 10.2.x modules/custom/social_demo/src/DemoNode.php \Drupal\social_demo\DemoNode::getEntry()
Makes an array with data of an entity.
Parameters
array $item: Array with items.
Return value
array Returns an array.
Overrides DemoContent::getEntry
5 calls to DemoNode::getEntry()
- Book::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Book.php - Makes an array with data of an entity.
- DemoNode::createContent in modules/
custom/ social_demo/ src/ DemoNode.php - Creates content.
- Event::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Event.php - Makes an array with data of an entity.
- Page::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Page.php - Makes an array with data of an entity.
- Topic::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Topic.php - Makes an array with data of an entity.
4 methods override DemoNode::getEntry()
- Book::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Book.php - Makes an array with data of an entity.
- Event::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Event.php - Makes an array with data of an entity.
- Page::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Page.php - Makes an array with data of an entity.
- Topic::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Topic.php - Makes an array with data of an entity.
File
- modules/
custom/ social_demo/ src/ DemoNode.php, line 146
Class
- DemoNode
- Class DemoNode.
Namespace
Drupal\social_demoCode
protected function getEntry(array $item) {
$entry = [
'uuid' => $item['uuid'],
'langcode' => $item['langcode'],
'created' => $item['created'],
'uid' => $item['uid'],
'title' => $item['title'],
'type' => $item['type'],
'body' => [
'value' => $this
->checkMentionOrLinkByUuid($item['body']),
'format' => 'basic_html',
],
];
return $entry;
}