mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-11-21 19:16:08 +01:00
[FEATURE] Add campaign to viewhelpers
This commit is contained in:
parent
174d2ff691
commit
40e322485e
3 changed files with 5 additions and 2 deletions
|
@ -34,7 +34,8 @@ class ButtonViewHelper extends VerificationViewHelper
|
|||
return $link->getVerificationButton(
|
||||
$arguments['type'],
|
||||
static::getId($arguments),
|
||||
static::getType($arguments)
|
||||
static::getType($arguments),
|
||||
$arguments['campaign']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,8 @@ class UrlViewHelper extends VerificationViewHelper
|
|||
return $link->getVerificationLink(
|
||||
$arguments['type'],
|
||||
static::getId($arguments),
|
||||
static::getType($arguments)
|
||||
static::getType($arguments),
|
||||
$arguments['campaign']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ abstract class VerificationViewHelper extends AbstractViewHelper
|
|||
$this->registerArgument('skill', 'integer', 'ID of the Skill.');
|
||||
$this->registerArgument('skillSet', 'integer', 'ID of the SkillSet.');
|
||||
$this->registerArgument('type', 'string', 'Type of verification', false, 'self');
|
||||
$this->registerArgument('campaign', 'int', 'ID of campaign', false, 0);
|
||||
}
|
||||
|
||||
public static function renderStatic(
|
||||
|
|
Loading…
Reference in a new issue