function ExampleConfigEntityListBuilder::getOperations

Same name in other branches
  1. 4.0.x tests/modules/ctools_wizard_test/src/ExampleConfigEntityListBuilder.php \Drupal\ctools_wizard_test\ExampleConfigEntityListBuilder::getOperations()

@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;
}