public function PasswordPolicyListBuilder::getDefaultOperations in Password Policy 8.3
Changes the edit url to use the wizard form.
Return value
array Operations for the Password Policy entity.
Overrides ConfigEntityListBuilder::getDefaultOperations
File
- src/
Controller/ PasswordPolicyListBuilder.php, line 39
Class
- PasswordPolicyListBuilder
- Provides a listing of Password Policies.
Namespace
Drupal\password_policy\ControllerCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$operations['edit']['url'] = new Url('entity.password_policy.wizard.edit', [
'machine_name' => $entity
->id(),
'step' => 'general',
]);
return $operations;
}