block_recentlyaccesseditems/main

Javascript to initialise the Recently accessed items block.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) getRecentItems(limit) → {array}

Source:

Get recent items from backend.

Parameters:
Name Type Description
limit int

Only return this many results

Returns:

Items user most recently has accessed

Type
array

(inner) renderItems(root, items) → {promise}

Source:

Render the block content.

Parameters:
Name Type Description
root object

The root element for the items view.

items array

containing array of returned items.

Returns:

Resolved with HTML and JS strings

Type
promise