Ejemplo n.º 1
0
 /**
  * Check whether button rendering is allowed in current context
  *
  * @param \Magento\Backend\Block\Widget\Button\Item $item
  * @return bool
  */
 public function canRender(Button\Item $item)
 {
     return !$item->isDeleted();
 }
Ejemplo n.º 2
0
 /**
  * {$@inheritdoc}
  */
 public function canRender(\Magento\Backend\Block\Widget\Button\Item $item)
 {
     return !$item->isDeleted();
 }
Ejemplo n.º 3
0
 public function testCanRender()
 {
     $this->buttonMock->expects($this->once())->method('isDeleted')->willReturn(false);
     $this->assertTrue($this->template->canRender($this->buttonMock));
 }