public function ExternalLinkPopupController::disable in External Link Pop-up 8
Disables a ExternalLinkPopup object.
Parameters
\Drupal\external_link_popup\Entity\ExternalLinkPopup $external_link_popup: The ExternalLinkPopup object to disable.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse A redirect response to the ExternalLinkPopup listing page.
1 string reference to 'ExternalLinkPopupController::disable'
File
- src/
Controller/ ExternalLinkPopupController.php, line 37
Class
- ExternalLinkPopupController
- Route controller class for the external_link_popup module.
Namespace
Drupal\external_link_popup\ControllerCode
public function disable(ExternalLinkPopup $external_link_popup) {
$external_link_popup
->disable()
->save();
return new RedirectResponse($external_link_popup
->toUrl('collection', [
'absolute' => TRUE,
])
->toString());
}