Elcodi\Admin\RuleBundle\Controller\RuleController::viewComponentAction PHP 메소드

viewComponentAction() 공개 메소드

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
리턴 array Result
    public function viewComponentAction(RuleInterface $entity)
    {
        return ['entity' => $entity];
    }