-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #2999549 by mtift, Daniel Korte, mherchel, alexpott, larowlan: …
…Allow button tag in LinkGenerator for better accessibility (cherry picked from commit 8ed835c0bce767690c584cc07b2d98991b5b78a6)
- Loading branch information
Showing
4 changed files
with
77 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Drupal\Core; | ||
|
||
/** | ||
* This class holds a <button> generated from the <button> route. | ||
* | ||
* Unlike \Drupal\Core\Render\Element\Button, this is not for generating | ||
* buttons for forms. This class is for putting a button in a list of links | ||
* such as a multi-level menu. | ||
*/ | ||
class GeneratedButton extends GeneratedLink { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
const TAG = 'button'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters