You are here

function _relation_stored_entity_keys_list in Relation 8.2

Same name and namespace in other branches
  1. 8 relation_entity_collector/relation_entity_collector.module \_relation_stored_entity_keys_list()
  2. 7 relation_entity_collector/relation_entity_collector.module \_relation_stored_entity_keys_list()

Helper to get a item_list render structure out of the entities in session.

1 call to _relation_stored_entity_keys_list()
EntityCollector::submitForm in relation_entity_collector/src/Form/EntityCollector.php
Form submission handler.

File

relation_entity_collector/relation_entity_collector.module, line 55
Relation Entity Collector Block.

Code

function _relation_stored_entity_keys_list() {
  $list = array();
  foreach ($_SESSION['relation_entity_keys'] as $entity_key) {
    $list[] = $entity_key['entity_label'];
  }
  return array(
    '#theme' => 'item_list',
    '#items' => $list,
  );
}