public function handleAdditionalArguments(array $arguments)
    {
        $unassigned = [];
        foreach ($arguments as $argumentName => $argumentValue) {
            if (strpos($argumentName, 'data-') === 0) {
                $this->tag->addAttribute($argumentName, $argumentValue);
            } else {
                $unassigned[$argumentName] = $argumentValue;
            }
        }
        parent::handleAdditionalArguments($unassigned);
    }
public function handleAdditionalArguments(array $arguments)
    {
        $unassigned = [];
        foreach ($arguments as $argumentName => $argumentValue) {
            if (strpos($argumentName, 'data-') === 0) {
                $this->tag->addAttribute($argumentName, $argumentValue);
            } else {
                $unassigned[$argumentName] = $argumentValue;
            }
        }
        parent::handleAdditionalArguments($unassigned);
    }
public function handleAdditionalArguments ( array $ arguments ) { $ unassigned = [ ] ; foreach ( $ arguments as $ argumentName => $ argumentValue ) { if ( strpos ( $ argumentName , 'data-' ) === 0 ) { $ this -> tag -> addAttribute ( $ argumentName , $ argumentValue ) ; } else { $ unassigned [ $ argumentName ] = $ argumentValue ; } } parent :: handleAdditionalArguments ( $ unassigned ) ; }
Handles additional arguments, sorting out any data-
prefixed tag attributes and assigning them. Then passes
the unassigned arguments to the parent class' method,
which in the default implementation will throw an error
about "undeclared argument used".

@param array $arguments
@return void
Handles additional arguments sorting out any data - prefixed tag attributes and assigning them . Then passes the unassigned arguments to the parent class method which in the default implementation will throw an error about undeclared argument used .