{"id":13155,"date":"2022-01-22T23:52:25","date_gmt":"2022-01-22T17:52:25","guid":{"rendered":"https:\/\/shra.ru\/?p=13155"},"modified":"2022-01-22T23:55:11","modified_gmt":"2022-01-22T17:55:11","slug":"redirekt-posle-otpravki-formy-v-drupal-8-9","status":"publish","type":"post","link":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/","title":{"rendered":"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9"},"content":{"rendered":"\n

\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e<\/a>. <\/p>\n\n\n\n\n\n\n\n

\u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter<\/em>, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit<\/em>. \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 setRedirectUrl <\/em>\u043e\u0431\u044a\u0435\u043a\u0442\u0430 FormStateInterface<\/em> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n

\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0432 \u0444\u043e\u0440\u043c\u0443 user_login_form<\/em>.<\/p>\n\n\n\n

\/**\n * Implements hook_form_alter().\n * @param $form\n * @param \\Drupal\\Core\\Form\\FormStateInterface $form_state\n * @param $form_id\n *\/\nfunction MYMODULE_form_alter(\n  &$form, \n  \\Drupal\\Core\\Form\\FormStateInterface $form_state, $form_id) \n{\n  if ($form_id == 'user_login_form') {\n    $form['#submit'][] = '_mymodule_user_redirect';\n  }\n}\n\nfunction _mymodule_user_redirect(\n  &$form, \n  \\Drupal\\Core\\Form\\FormStateInterface $form_state) \n{\n  $form_state->setRedirectUrl(Url::fromUri('internal:\/YOUR-INTERNAL-URL'));\n}<\/code><\/pre>\n\n\n\n

\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u0448\u0442\u0430\u0442\u043d\u043e, \u043f\u043e\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0438 GET \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n\n\n\n

function _mymodule_user_redirect(\n  &$form,\n  \\Drupal\\Core\\Form\\FormStateInterface $form_state)\n{\n  $name = $form_state->getValue('name');\n  $form_state->setRedirectUrl(\n    Url::fromUri(\n      'internal:\/YOUR-INTERNAL-URL', \n      ['name' => $name]));\n}<\/code><\/pre>\n\n\n\n

\u041e\u043d\u0438 \u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n

namespace Drupal\\my_module\\Controller;\n\nuse Drupal\\Core\\Controller\\ControllerBase;\n\n\/**\n * Provides route responses for the module.\n *\/\nclass MyWebsiteController extends ControllerBase {\n\n  public function message() {\n    $name = \\Drupal::request()->query->get('name');\n    return [\n      '#name' => $name,\n      '#theme' => 'MY_TEMPLATE',\n    ];\n  }\n}<\/code><\/pre>\n\n\n\n

\u0415\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432\u0432\u043e\u0434 \u0444\u043e\u0440\u043c\u044b, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u0434 \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 submit<\/em>:<\/p>\n\n\n\n

use Drupal\\Core\\Routing\\TrustedRedirectResponse;\n\nfunction _mymodule_user_redirect(\n  &$form,\n  \\Drupal\\Core\\Form\\FormStateInterface $form_state) \n{\n  $response = new TrustedRedirectResponse(\n    Url::fromUri('internal:\/YOUR-INTERNAL-URL')->toString()\n  );\n  $response->send();\n}<\/code><\/pre>\n\n\n\n

\u042d\u0442\u043e \u043f\u0440\u0435\u0440\u0432\u0435\u0442 \u0448\u0442\u0430\u0442\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0444\u043e\u0440\u043c\u044b, \u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0435\u0451 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 URL.<\/p>\n","protected":false},"excerpt":{"rendered":"

\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[134],"acf":[],"yoast_head":"\n\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9<\/title>\n<meta name=\"description\" content=\"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9\" \/>\n<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/\" \/>\n<meta property=\"og:site_name\" content=\"Shra's homepage\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-22T17:52:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-22T17:55:11+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u043c\u0438\u043d\u0443\u0442\u0430\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/\",\"url\":\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/\",\"name\":\"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9\",\"isPartOf\":{\"@id\":\"https:\/\/shra.ru\/#website\"},\"datePublished\":\"2022-01-22T17:52:25+00:00\",\"dateModified\":\"2022-01-22T17:55:11+00:00\",\"author\":{\"@id\":\"https:\/\/shra.ru\/#\/schema\/person\/55c78fbfda205fbab95564dcccc144e8\"},\"description\":\"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.\",\"breadcrumb\":{\"@id\":\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/shra.ru\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/shra.ru\/#website\",\"url\":\"https:\/\/shra.ru\/\",\"name\":\"Shra's homepage\",\"description\":\"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 shra, \u0431\u043b\u043e\u0433 \u0444\u0440\u0438\u043b\u0435\u043d\u0441\u0435\u0440\u0430, \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043d\u0430 PHP. \u0417\u0434\u0435\u0441\u044c \u044f \u0434\u0435\u043b\u044e\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u043c\u044b\u0441\u043b\u044f\u043c\u0438, \u043f\u0440\u043e\u0432\u043e\u0436\u0443 \u043e\u043f\u044b\u0442\u044b \u043d\u0430\u0434 \u043b\u044e\u0434\u044c\u043c\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u043d\u0435\u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0441 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0432\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0432\u0441\u044e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u0430\u0448\u0435 \u043f\u0441\u0438\u0445\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u044b \u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u043b\u0438\u0446.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/shra.ru\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/shra.ru\/#\/schema\/person\/55c78fbfda205fbab95564dcccc144e8\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/shra.ru\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/shra.ru\/wp-content\/uploads\/2021\/08\/shra_ava_margo_512-96x96.png\",\"contentUrl\":\"https:\/\/shra.ru\/wp-content\/uploads\/2021\/08\/shra_ava_margo_512-96x96.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/shra.ru\"],\"url\":\"https:\/\/shra.ru\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9","description":"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/","og_locale":"ru_RU","og_type":"article","og_title":"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9","og_description":"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.","og_url":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/","og_site_name":"Shra's homepage","article_published_time":"2022-01-22T17:52:25+00:00","article_modified_time":"2022-01-22T17:55:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"admin","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"1 \u043c\u0438\u043d\u0443\u0442\u0430"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/","url":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/","name":"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9","isPartOf":{"@id":"https:\/\/shra.ru\/#website"},"datePublished":"2022-01-22T17:52:25+00:00","dateModified":"2022-01-22T17:55:11+00:00","author":{"@id":"https:\/\/shra.ru\/#\/schema\/person\/55c78fbfda205fbab95564dcccc144e8"},"description":"\u0414\u043b\u044f \u0441\u0435\u043c\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u044f\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c \u0447\u0435\u0440\u0435\u0437 hook_form_alter, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a submit.","breadcrumb":{"@id":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/shra.ru\/2022\/01\/redirekt-posle-otpravki-formy-v-drupal-8-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/shra.ru\/"},{"@type":"ListItem","position":2,"name":"\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b \u0432 Drupal 8\/9"}]},{"@type":"WebSite","@id":"https:\/\/shra.ru\/#website","url":"https:\/\/shra.ru\/","name":"Shra's homepage","description":"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 shra, \u0431\u043b\u043e\u0433 \u0444\u0440\u0438\u043b\u0435\u043d\u0441\u0435\u0440\u0430, \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043d\u0430 PHP. \u0417\u0434\u0435\u0441\u044c \u044f \u0434\u0435\u043b\u044e\u0441\u044c \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u043c\u044b\u0441\u043b\u044f\u043c\u0438, \u043f\u0440\u043e\u0432\u043e\u0436\u0443 \u043e\u043f\u044b\u0442\u044b \u043d\u0430\u0434 \u043b\u044e\u0434\u044c\u043c\u0438, \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u043d\u0435\u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0441 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u0432\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0432\u0441\u044e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u0430\u0448\u0435 \u043f\u0441\u0438\u0445\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u044b \u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u043b\u0438\u0446.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shra.ru\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/shra.ru\/#\/schema\/person\/55c78fbfda205fbab95564dcccc144e8","name":"admin","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/shra.ru\/#\/schema\/person\/image\/","url":"https:\/\/shra.ru\/wp-content\/uploads\/2021\/08\/shra_ava_margo_512-96x96.png","contentUrl":"https:\/\/shra.ru\/wp-content\/uploads\/2021\/08\/shra_ava_margo_512-96x96.png","caption":"admin"},"sameAs":["https:\/\/shra.ru"],"url":"https:\/\/shra.ru\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/posts\/13155"}],"collection":[{"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/comments?post=13155"}],"version-history":[{"count":1,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/posts\/13155\/revisions"}],"predecessor-version":[{"id":13159,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/posts\/13155\/revisions\/13159"}],"wp:attachment":[{"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/media?parent=13155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/categories?post=13155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shra.ru\/wp-json\/wp\/v2\/tags?post=13155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} <!-- Alpha cache content. Generated from cache in 0.017602920532227 s. DB queries count : 2 -->