/** * @param mixed $value * @return object */ private function singleReverseTransform($value) { return $this->admin->findEntity($value); }
/** * Delete a content entity * */ public function deleteAction(Request $request, ContentAdmin $admin) { $entity = $admin->findEntity($request->attributes->get('id')); $this->secure($admin, 'ADMIN_CONTENT_DELETE', $entity); if ($request->isXmlHttpRequest()) { return $this->modalDelete($request, $admin, $entity); } else { return $this->delete($request, $admin, $entity); } }