Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 2402a79

Browse files
committed
MAGETWO-81188: Make block class not mandatory
- fix static test
1 parent 76dfaf9 commit 2402a79

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/View/Layout/Generator

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/View/Layout/Generator/Block.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ protected function generateBlock(
221221
}
222222

223223
// create block
224-
$className = isset($attributes['class']) && !empty($attributes['class']) ? $attributes['class'] : $this->defaultClass ;
224+
$className = isset($attributes['class']) && !empty($attributes['class']) ?
225+
$attributes['class'] : $this->defaultClass ;
225226
$block = $this->createBlock($className, $elementName, [
226227
'data' => $this->evaluateArguments($data['arguments'])
227228
]);

0 commit comments

Comments
 (0)