You are here

public function ContentHubSubscription::listEntities in Acquia Content Hub 8

Lists Entities from the Content Hub.

Example of how to structure the $options parameter:

@codingStandardsIgnoreStart

$options = [ 'limit' => 20, 'type' => 'node', 'origin' => '11111111-1111-1111-1111-111111111111', 'fields' => 'status,title,body,field_tags,description', 'filters' => [ 'status' => 1, 'title' => 'New*', 'body' => '/Boston/', ], ];

@codingStandardsIgnoreEnd

Parameters

array $options: The options array to search.

Return value

array|bool The result array or FALSE otherwise.

File

src/ContentHubSubscription.php, line 409

Class

ContentHubSubscription
Handles operations on the Acquia Content Hub Subscription.

Namespace

Drupal\acquia_contenthub

Code

public function listEntities(array $options) {
  if ($entities = $this->clientManager
    ->createRequest('listEntities', [
    $options,
  ])) {
    return $entities;
  }
  return FALSE;
}