_notice = $notice; } /** * Renders grid column * * @param \Magento\Framework\DataObject $row * @return string */ public function render(\Magento\Framework\DataObject $row) { $class = ''; $value = ''; switch ($row->getData($this->getColumn()->getIndex())) { case MessageInterface::SEVERITY_CRITICAL: $class = 'critical'; $value = $this->_notice->getSeverities(MessageInterface::SEVERITY_CRITICAL); break; case MessageInterface::SEVERITY_MAJOR: $class = 'major'; $value = $this->_notice->getSeverities(MessageInterface::SEVERITY_MAJOR); break; case MessageInterface::SEVERITY_MINOR: $class = 'minor'; $value = $this->_notice->getSeverities(MessageInterface::SEVERITY_MINOR); break; case MessageInterface::SEVERITY_NOTICE: $class = 'notice'; $value = $this->_notice->getSeverities(MessageInterface::SEVERITY_NOTICE); break; } return '' . $value . ''; } }