interface DataSourceInterface (View source)

Data source interface for providing generic data

This is used in the user interface to generate dynamic option lists.

Methods

static string
getIdentifier()

No description

mixed
getData(NodeInterface $node = null, array $arguments = [])

Get data

Details

static string getIdentifier()

No description

Return Value

string

The identifier of the data source

mixed getData(NodeInterface $node = null, array $arguments = [])

Get data

The return value must be JSON serializable data structure.

Parameters

NodeInterface $node

The node that is currently edited (optional)

array $arguments

Additional arguments (key / value)

Return Value

mixed

JSON serializable data