コード例 #1
0
ファイル: Renderer.php プロジェクト: pradeep-wagento/magento2
 /**
  * @param string $groupHtml
  * @param \Magento\Framework\View\Asset\PropertyGroup $group
  * @return string
  */
 protected function processIeCondition($groupHtml, $group)
 {
     $ieCondition = $group->getProperty('ie_condition');
     if (!empty($ieCondition)) {
         $groupHtml = '<!--[if ' . $ieCondition . ']>' . "\n" . $groupHtml . '<![endif]-->' . "\n";
     }
     return $groupHtml;
 }
コード例 #2
0
 public function testGetProperty()
 {
     $this->assertEquals('test_value', $this->_object->getProperty('test_property'));
     $this->assertNull($this->_object->getProperty('non_existing_property'));
 }