Created
October 13, 2014 14:23
-
-
Save weierophinney/c1ea3098a8fbd5a45702 to your computer and use it in GitHub Desktop.
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
<?php | |
function injectLogoLink($e) | |
{ | |
$halEntity = $e->getParam('entity'); | |
$halEntity->getLinks()->add(\ZF\Hal\Link\Link::factory( | |
'rel' => 'logo', | |
'route' => array( | |
'name' => 'cart-logo', | |
'params' => array( | |
'id' => $halEntity->id, | |
), | |
), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment