-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VOI-37 Custom patch to default drupal/flag links view mode to full
- Loading branch information
1 parent
ef57deb
commit e7f9caa
Showing
2 changed files
with
17 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
build/patches/unblib-voi-flag-default-view-mode-full.patch
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,13 @@ | ||
diff --git a/src/FlagLinkBuilder.php b/src/FlagLinkBuilder.php | ||
index bbbf0f3..c89038a 100644 | ||
--- a/src/FlagLinkBuilder.php | ||
+++ b/src/FlagLinkBuilder.php | ||
@@ -47,7 +47,7 @@ class FlagLinkBuilder implements FlagLinkBuilderInterface, TrustedCallbackInterf | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
- public function build($entity_type_id, $entity_id, $flag_id, $view_mode = NULL) { | ||
+ public function build($entity_type_id, $entity_id, $flag_id, $view_mode = 'full') { | ||
$entity = $this->entityTypeManager->getStorage($entity_type_id)->load($entity_id); | ||
$flag = $this->flagService->getFlagById($flag_id); | ||
|