Elcodi\Admin\AttributeBundle\Controller\Component\AttributeComponentController::editComponentAction PHP Метод

editComponentAction() публичный Метод

As a component, this action should not return all the html macro, but only the specific component
public editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute ) : array
$formView Symfony\Component\Form\FormView Form view
$attribute Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface Attribute
Результат array Result
    public function editComponentAction(FormView $formView, AttributeInterface $attribute)
    {
        $allAvailableValues = $this->get('elcodi.repository.attribute_value')->findAll();
        $attributeValues = $attribute->getValues()->toArray();
        return ['attribute' => $attribute, 'form' => $formView, 'attributeValues' => $this->getValuesSplittedByComma($attributeValues), 'allValues' => $this->getValuesSplittedByComma($allAvailableValues)];
    }