Resolve #3523725 "Htmx attributes"
1 unresolved thread
1 unresolved thread
Closes #3523725
Merge request reports
Activity
added 15 commits
-
9c7fd908...b43aae5d - 8 commits from branch
project:11.x
- 84f4d970 - create HtmxAttribute and related changes.
- 984702de - Address need for single quoted syntax.
- cd2928cb - Lint- phpcs, phpstan, cspell
- 6a4c2f1a - Lint- phpcs
- 028a818a - Add twig function and test method.
- 8df25064 - Improvements based on feedback
- eb7c68fa - Improved phpstan compliance
Toggle commit list-
9c7fd908...b43aae5d - 8 commits from branch
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
- Resolved by Shawn Duncan
293 * 294 * @param string $strategy 295 * The swap strategy. 296 * @param bool $ignoreTitle 297 * Instruct HTMX not to swap in the page title from the request. 298 * 299 * @return $this 300 * Returns this object to allow chaining methods. 301 * 302 * @see https://htmx.org/attributes/hx-swap/ 303 */ 304 public function swap(string $strategy, bool $ignoreTitle = TRUE): HtmxAttribute { 305 // HTMX defaults this behavior to FALSE, that is it replaces page title. 306 // We believe our most common use case is to not change the title. 307 if ($ignoreTitle) { 308 $strategy .= ' ignoreTitle:true';
Please register or sign in to reply