protected function DemoEntity::getEntry in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.2 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.3 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.4 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.5 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.6 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.7 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 8.8 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 10.3.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 10.1.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
- 10.2.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::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 DemoEntity::getEntry()
- DemoEntity::createContent in modules/
custom/ social_demo/ src/ DemoEntity.php - Creates content.
- EventEnrollment::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ EventEnrollment.php - Makes an array with data of an entity.
- Like::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Like.php - Makes an array with data of an entity.
- MenuLink::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ MenuLink.php - Makes an array with data of an entity.
- Post::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Post.php - Makes an array with data of an entity.
4 methods override DemoEntity::getEntry()
- EventEnrollment::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ EventEnrollment.php - Makes an array with data of an entity.
- Like::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Like.php - Makes an array with data of an entity.
- MenuLink::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ MenuLink.php - Makes an array with data of an entity.
- Post::getEntry in modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ Post.php - Makes an array with data of an entity.
File
- modules/
custom/ social_demo/ src/ DemoEntity.php, line 76
Class
- DemoEntity
- Class DemoEntity.
Namespace
Drupal\social_demoCode
protected function getEntry(array $item) {
$entry = [
'uuid' => $item['uuid'],
];
return $entry;
}