Changes for core/lib/Drupal/Core/Htmx/HtmxRequestInfoTrait.php: 3 added lines, 3 removed lines.
Original line number
Diff line number
Diff line
@@ -90,12 +90,12 @@ protected function getHtmxTarget(): string {
* @return string
* The value of the 'HX-Trigger' header, or an empty string if not set.
*
* @deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. There is
* no replacement.
* @deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. Use
* HtmxRequestInfoTrait::getHtmxSource() instead.
* @see https://www.drupal.org/node/3583674
*/
protectedfunctiongetHtmxTrigger():string{
@trigger_error(__METHOD__.'() is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3583674',E_USER_DEPRECATED);
@trigger_error(__METHOD__.'() is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. Use HtmxRequestInfoTrait::getHtmxSource() instead. See https://www.drupal.org/node/3583674',E_USER_DEPRECATED);
Changes for core/tests/Drupal/Tests/Core/Htmx/HtmxRequestInfoTest.php: 1 added line, 1 removed line.
Original line number
Diff line number
Diff line
@@ -109,7 +109,7 @@ public function testGetHtmxTarget(): void {
#[IgnoreDeprecations]
publicfunctiontestGetHtmxTrigger():void{
// Test with the header not present.
$this->expectUserDeprecationMessage('Drupal\Core\Htmx\HtmxRequestInfoTrait::getHtmxTrigger() is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3583674');
$this->expectUserDeprecationMessage('Drupal\Core\Htmx\HtmxRequestInfoTrait::getHtmxTrigger() is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. Use HtmxRequestInfoTrait::getHtmxSource() instead. See https://www.drupal.org/node/3583674');