You are here

function pet_uri in Previewable email templates 8

Same name and namespace in other branches
  1. 8.4 pet.module \pet_uri()
  2. 7 pet.module \pet_uri()

Entity uri callback.

File

./pet.module, line 39
Previewable Email Template module.

Code

function pet_uri(Pet $pet) {
  return [
    'path' => 'pet/' . $pet
      ->id(),
  ];
}