You are here

protected function DemoEntity::getEntry in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  2. 8.2 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  3. 8.3 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  4. 8.4 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  5. 8.5 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  6. 8.6 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  7. 8.7 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  8. 8.8 modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  9. 10.3.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  10. 10.0.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  11. 10.1.x modules/custom/social_demo/src/DemoEntity.php \Drupal\social_demo\DemoEntity::getEntry()
  12. 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 73

Class

DemoEntity
Class DemoEntity.

Namespace

Drupal\social_demo

Code

protected function getEntry(array $item) {
  $entry = [
    'uuid' => $item['uuid'],
  ];
  return $entry;
}