You are here

protected function RelationListBuilder::getDefaultOperations in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_user_sync/src/RelationListBuilder.php \Drupal\crm_core_user_sync\RelationListBuilder::getDefaultOperations()

Gets this list's default operations.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array The array structure is identical to the return value of self::getOperations().

Overrides EntityListBuilder::getDefaultOperations

File

modules/crm_core_user_sync/src/RelationListBuilder.php, line 103

Class

RelationListBuilder
Provides a list controller for the relation entity type.

Namespace

Drupal\crm_core_user_sync

Code

protected function getDefaultOperations(EntityInterface $entity) {
  $operations = parent::getDefaultOperations($entity);
  $destination = $this->redirectDestination
    ->getAsArray();
  foreach ($operations as $key => $operation) {
    $operations[$key]['query'] = $destination;
  }
  return $operations;
}