function let(CrudControllerInterface $controller, DefinitionInterface $definition)
 {
     $controller->getLink('create', $definition)->willReturn('/create');
     $controller->getLink('update', $definition, Argument::any())->will(function ($args) {
         return '/update/' . $args[2];
     });
 }
 /**
  * {@inheritdoc}
  */
 public function getUpdateOptions(CrudControllerInterface $controller, DefinitionInterface $definition, $object)
 {
     return ['method' => 'PUT', 'action' => $controller->getLink('update', $definition, $object)];
 }