You are here

public function UnpublishedNodesRedirectUtils::getResponseCodeKey in Unpublished Nodes Redirect 8

Same name and namespace in other branches
  1. 2.x src/Utils/UnpublishedNodesRedirectUtils.php \Drupal\unpublished_nodes_redirect\Utils\UnpublishedNodesRedirectUtils::getResponseCodeKey()

Gets the response code key used in this module.

Parameters

string $node_type: Machine name of content type.

Return value

string

4 calls to UnpublishedNodesRedirectUtils::getResponseCodeKey()
UnpublishedNodesRedirectSettingsForm::buildForm in src/Form/UnpublishedNodesRedirectSettingsForm.php
Form constructor.
UnpublishedNodesRedirectSettingsForm::submitForm in src/Form/UnpublishedNodesRedirectSettingsForm.php
Form submission handler.
UnpublishedNodesRedirectSettingsForm::validateForm in src/Form/UnpublishedNodesRedirectSettingsForm.php
Form validation handler.
UnpublishedNodesRedirectSubscriber::redirectUnpublishedNodes in src/EventSubscriber/UnpublishedNodesRedirectSubscriber.php
Fires redirects whenever the KernelEvents::RESPONSE event is dispatched.

File

src/Utils/UnpublishedNodesRedirectUtils.php, line 48

Class

UnpublishedNodesRedirectUtils
Utility class for Unpublished nodes redirect module.

Namespace

Drupal\unpublished_nodes_redirect\Utils

Code

public function getResponseCodeKey($node_type) {
  return $node_type . '_unpublished_redirect_response_code';
}