Skip to content

Magento\Backend\Block\Widget\Grid\Column\Renderer\Currency #814

@SchumacherFM

Description

@SchumacherFM

In Magento\Backend\Block\Widget\Grid\Column\Renderer\Currency the render method is not using
\Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer::_getValue(Object $row)

    public function render(\Magento\Framework\Object $row)
    {
        if ($data = (string)$row->getData($this->getColumn()->getIndex())) {

What is the particular reason for relying on the retrieval method above? ;-)

Would be great if you can implement the _getValue() method as there are use cases for retrieving a computed value.

In Magento\Backend\Block\Widget\Grid\Column\Renderer::Number you have the correct useful implementation of _getValue() :-)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions