Skip to content

Commit

Permalink
added $external parameter to ItemInterface::getDetailsUrl()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed Jun 21, 2018
1 parent ee78493 commit a0eae47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Item/DefaultItem.php
Expand Up @@ -244,7 +244,7 @@ public function getModule(): array
/**
* {@inheritdoc}
*/
public function getDetailsUrl(): ?string
public function getDetailsUrl(bool $external = true): ?string
{
return null;
}
Expand Down
4 changes: 3 additions & 1 deletion src/Item/ItemInterface.php
Expand Up @@ -106,9 +106,11 @@ public function getModule(): array;
/**
* Get the details url if available.
*
* @param bool $external Determine if external urls should be returned as well (required by search index)
*
* @return null|string
*/
public function getDetailsUrl(): ?string;
public function getDetailsUrl(bool $external = true): ?string;

/**
* @return mixed
Expand Down

0 comments on commit a0eae47

Please sign in to comment.