TYPO3GmbH / ext-usercentrics

This extension integrates Usercentrics (Compliance and Consent Management) into TYPO3.
GNU General Public License v2.0
4 stars 6 forks source link

ViewHelper is missing attribute registration #14

Closed NeoBlack closed 4 years ago

NeoBlack commented 4 years ago

Bug Report

Prerequisites

Description

The ViewHelper is missing an attribute registration, the attribute "dataServiceProcessor" is documented, but not registered in the ViewHelper, so the ViewHelpers throws an error if it is set.

Steps to Reproduce

  1. Use the ViewHelper in your view and set the attribute "dataServiceProcessor"

Expected behavior:

No exception ;)

Actual behavior:

An exception is thrown.

Versions

the latest version (master) and v10. v9 was not tested yet.

Solution:


    public function initializeArguments(): void
    {
        parent::initializeArguments();
        $this->registerArgument('dataServiceProcessor', 'string', 'the data processing service name as configured in Usercentrics', true);
    }
NeoBlack commented 4 years ago

also reported here as documentation issue: #11