public function setAssociationContext(XMLElement &$wrapper)
    {
        $association_context = $this->getAssociationContext();

        if (!empty($association_context)) {
            $wrapper->setAttributeArray(array(
                'data-parent-section-id' => $association_context['parent_section_id'],
                'data-parent-section-field-id' => $association_context['parent_section_field_id'],
                'data-child-section-id' => $association_context['child_section_id'],
                'data-child-section-field-id' => $association_context['child_section_field_id'],
                'data-interface' => $association_context['interface'],
                'data-editor' => $association_context['editor']
            ));
        }
    }
public function setAssociationContext(XMLElement &$wrapper)
    {
        $association_context = $this->getAssociationContext();

        if (!empty($association_context)) {
            $wrapper->setAttributeArray(array(
                'data-parent-section-id' => $association_context['parent_section_id'],
                'data-parent-section-field-id' => $association_context['parent_section_field_id'],
                'data-child-section-id' => $association_context['child_section_id'],
                'data-child-section-field-id' => $association_context['child_section_field_id'],
                'data-interface' => $association_context['interface'],
                'data-editor' => $association_context['editor']
            ));
        }
    }
public function setAssociationContext ( XMLElement & $ wrapper ) { $ association_context = $ this -> getAssociationContext ( ) ; if ( ! empty ( $ association_context ) ) { $ wrapper -> setAttributeArray ( array ( 'data-parent-section-id' => $ association_context [ 'parent_section_id' ] , 'data-parent-section-field-id' => $ association_context [ 'parent_section_field_id' ] , 'data-child-section-id' => $ association_context [ 'child_section_id' ] , 'data-child-section-field-id' => $ association_context [ 'child_section_field_id' ] , 'data-interface' => $ association_context [ 'interface' ] , 'data-editor' => $ association_context [ 'editor' ] ) ) ; } }
Set association data for the current field.

@since Symphony 2.5.0
@param XMLElement $wrapper
Set association data for the current field .