Elcodi\Admin\RuleBundle\Controller\RuleController::viewComponentAction PHP Method

viewComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public viewComponentAction ( Elcodi\Component\Rule\Entity\Interfaces\RuleInterface $entity ) : array
$entity Elcodi\Component\Rule\Entity\Interfaces\RuleInterface Entity to view
return array Result
    public function viewComponentAction(RuleInterface $entity)
    {
        return ['entity' => $entity];
    }