Skip to content

Commit

Permalink
MAGETWO-81188: Make block class not mandatory
Browse files Browse the repository at this point in the history
- fix static test
  • Loading branch information
cpartica committed Oct 7, 2017
1 parent 76dfaf9 commit 2402a79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ protected function generateBlock(
}

// create block
$className = isset($attributes['class']) && !empty($attributes['class']) ? $attributes['class'] : $this->defaultClass ;
$className = isset($attributes['class']) && !empty($attributes['class']) ?
$attributes['class'] : $this->defaultClass ;
$block = $this->createBlock($className, $elementName, [
'data' => $this->evaluateArguments($data['arguments'])
]);
Expand Down

0 comments on commit 2402a79

Please sign in to comment.