PHP Class Craft\ElementApiController

Inheritance: extends craft\BaseController
Show file Open project: pixelandtonic/ElementAPI

Protected Properties

Property Type Description
$allowAnonymous anonymous access to this controller's actions.

Public Methods

Method Description
actionGetElements ( callable | null $configFactory = null, array $config = null ) Returns the requested elements as JSON

Private Methods

Method Description
_callWithParams ( $func, $params ) : mixed Calls a given function. If any params are given, they will be mapped to the function's arguments.

Method Details

actionGetElements() public method

Returns the requested elements as JSON
public actionGetElements ( callable | null $configFactory = null, array $config = null )
$configFactory callable | null A function for generating the config
$config array The API endpoint configuration

Property Details

$allowAnonymous protected property

anonymous access to this controller's actions.
protected $allowAnonymous