Adapt search result and product teasers to daytrips
This commit is contained in:
@@ -40,6 +40,7 @@ class NightsOptionsViewHelper extends AbstractViewHelper
|
||||
parent::initializeArguments();
|
||||
|
||||
$this->registerArgument('options', 'array', 'The options');
|
||||
$this->registerArgument('daytrip', 'bool', 'Is daytrip or not', false, false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,6 +55,9 @@ class NightsOptionsViewHelper extends AbstractViewHelper
|
||||
RenderingContextInterface $renderingContext
|
||||
)
|
||||
{
|
||||
if ($arguments['daytrip']) {
|
||||
return 'Tageweise buchbar';
|
||||
}
|
||||
$options = $arguments['options'];
|
||||
if ($options === null) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user