You are here

public function ExampleConfigEntityListBuilder::getOperations in Chaos Tool Suite (ctools) 8.3

@inheritDoc

Overrides EntityListBuilder::getOperations

File

tests/modules/ctools_wizard_test/src/ExampleConfigEntityListBuilder.php, line 35

Class

ExampleConfigEntityListBuilder
Provides a listing of Example config entity entities.

Namespace

Drupal\ctools_wizard_test

Code

public function getOperations(EntityInterface $entity) {
  $operations = parent::getOperations($entity);
  if (!empty($operations['edit'])) {

    /** @var \Drupal\Core\Url $edit */
    $edit = $operations['edit']['url'];
    $edit
      ->setRouteParameters([
      'machine_name' => $entity
        ->id(),
      'step' => 'general',
    ]);
  }
  return $operations;
}