Loading composer.lock +3 −1 Changes for composer.lock: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -535,7 +535,7 @@ "dist": { "type": "path", "url": "core", "reference": "107b1d4f65408eb2844facd227005517de15343b" "reference": "833c40df380059ecff9e327223e066ac3a41c328" }, "require": { "asm89/stack-cors": "^1.1", Loading Loading @@ -572,6 +572,7 @@ "symfony/http-kernel": "^4.4", "symfony/mime": "^5.3.0", "symfony/polyfill-iconv": "^1.0", "symfony/polyfill-php80": "^1.16", "symfony/process": "^4.4", "symfony/psr-http-message-bridge": "^2.0", "symfony/routing": "^4.4", Loading Loading @@ -6962,6 +6963,7 @@ "type": "github" } ], "abandoned": true, "time": "2020-11-30T07:30:19+00:00" }, { Loading core/composer.json +1 −0 Changes for core/composer.json: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ "symfony/validator": "^4.4", "symfony/process": "^4.4", "symfony/polyfill-iconv": "^1.0", "symfony/polyfill-php80": "^1.16", "symfony/yaml": "^4.4.19", "typo3/phar-stream-wrapper": "^3.1.3", "twig/twig": "^2.12.0", Loading core/lib/Drupal/Core/Ajax/AjaxHelperTrait.php +6 −8 Changes for core/lib/Drupal/Core/Ajax/AjaxHelperTrait.php: 6 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -18,19 +18,17 @@ trait AjaxHelperTrait { * TRUE if the current request is via AJAX, FALSE otherwise. */ protected function isAjax() { foreach (['drupal_ajax', 'drupal_modal', 'drupal_dialog'] as $wrapper) { if (strpos($this->getRequestWrapperFormat(), $wrapper) !== FALSE) { return TRUE; } } return FALSE; $wrapper_format = $this->getRequestWrapperFormat() ?? ''; return str_contains($wrapper_format, 'drupal_ajax') || str_contains($wrapper_format, 'drupal_modal') || str_contains($wrapper_format, 'drupal_dialog'); } /** * Gets the wrapper format of the current request. * * @string * The wrapper format. * @return string|null * The wrapper format. NULL if the wrapper format is not set. */ protected function getRequestWrapperFormat() { return \Drupal::request()->get(MainContentViewSubscriber::WRAPPER_FORMAT); Loading Loading
composer.lock +3 −1 Changes for composer.lock: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -535,7 +535,7 @@ "dist": { "type": "path", "url": "core", "reference": "107b1d4f65408eb2844facd227005517de15343b" "reference": "833c40df380059ecff9e327223e066ac3a41c328" }, "require": { "asm89/stack-cors": "^1.1", Loading Loading @@ -572,6 +572,7 @@ "symfony/http-kernel": "^4.4", "symfony/mime": "^5.3.0", "symfony/polyfill-iconv": "^1.0", "symfony/polyfill-php80": "^1.16", "symfony/process": "^4.4", "symfony/psr-http-message-bridge": "^2.0", "symfony/routing": "^4.4", Loading Loading @@ -6962,6 +6963,7 @@ "type": "github" } ], "abandoned": true, "time": "2020-11-30T07:30:19+00:00" }, { Loading
core/composer.json +1 −0 Changes for core/composer.json: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ "symfony/validator": "^4.4", "symfony/process": "^4.4", "symfony/polyfill-iconv": "^1.0", "symfony/polyfill-php80": "^1.16", "symfony/yaml": "^4.4.19", "typo3/phar-stream-wrapper": "^3.1.3", "twig/twig": "^2.12.0", Loading
core/lib/Drupal/Core/Ajax/AjaxHelperTrait.php +6 −8 Changes for core/lib/Drupal/Core/Ajax/AjaxHelperTrait.php: 6 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -18,19 +18,17 @@ trait AjaxHelperTrait { * TRUE if the current request is via AJAX, FALSE otherwise. */ protected function isAjax() { foreach (['drupal_ajax', 'drupal_modal', 'drupal_dialog'] as $wrapper) { if (strpos($this->getRequestWrapperFormat(), $wrapper) !== FALSE) { return TRUE; } } return FALSE; $wrapper_format = $this->getRequestWrapperFormat() ?? ''; return str_contains($wrapper_format, 'drupal_ajax') || str_contains($wrapper_format, 'drupal_modal') || str_contains($wrapper_format, 'drupal_dialog'); } /** * Gets the wrapper format of the current request. * * @string * The wrapper format. * @return string|null * The wrapper format. NULL if the wrapper format is not set. */ protected function getRequestWrapperFormat() { return \Drupal::request()->get(MainContentViewSubscriber::WRAPPER_FORMAT); Loading