You are here

public function RestfulDataProviderCToolsPlugins::index in RESTful 7

Get a list of entities.

Return value

array Array of entities, as passed to RestfulEntityBase::viewEntity().

Throws

RestfulBadRequestException

Overrides RestfulBase::index

File

plugins/restful/RestfulDataProviderCToolsPlugins.php, line 235
Contains \RestfulDataProviderCToolsPlugins

Class

RestfulDataProviderCToolsPlugins
@file Contains \RestfulDataProviderCToolsPlugins

Code

public function index() {
  $return = array();
  foreach (array_keys($this
    ->getPluginsSortedAndFiltered()) as $plugin_name) {
    $return[] = $this
      ->view($plugin_name);
  }
  return $return;
}