- public function modifyMeta(array $meta)
- {
- $linksPath = Composite::CHILDREN_PATH . '/' . Composite::CONTAINER_LINKS;
- $linksContainer['arguments']['data']['config'] = [
- 'componentType' => Form\Fieldset::NAME,
- 'additionalClasses' => 'admin__fieldset-section',
- 'label' => __('Links'),
- 'dataScope' => '',
- 'visible' => $this->locator->getProduct()->getTypeId() === Type::TYPE_DOWNLOADABLE,
- 'sortOrder' => 30,
- ];
- $linksTitle['arguments']['data']['config'] = [
- 'componentType' => Form\Field::NAME,
- 'formElement' => Form\Element\Input::NAME,
- 'dataType' => Form\Element\DataType\Text::NAME,
- 'label' => __('Title'),
- 'dataScope' => 'product.links_title',
- 'scopeLabel' => $this->storeManager->isSingleStoreMode() ? '' : '[STORE VIEW]',
- ];
- $linksPurchasedSeparately['arguments']['data']['config'] = [
- 'componentType' => Form\Field::NAME,
- 'formElement' => Form\Element\Checkbox::NAME,
- 'dataType' => Form\Element\DataType\Number::NAME,
- 'description' => __('Links can be purchased separately'),
- 'label' => ' ',
- 'dataScope' => 'product.links_purchased_separately',
- 'scopeLabel' => $this->storeManager->isSingleStoreMode() ? '' : '[GLOBAL]',
- 'valueMap' => [
- 'false' => '0',
- 'true' => '1',
- ],
- ];
- // @codingStandardsIgnoreStart
- $informationLinks['arguments']['data']['config'] = [
- 'componentType' => Container::NAME,
- 'component' => 'Magento_Ui/js/form/components/html',
- 'additionalClasses' => 'admin__fieldset-note',
- 'content' => __('Alphanumeric, dash and underscore characters are recommended for filenames. Improper characters are replaced with \'_\'.'),
- ];
- // @codingStandardsIgnoreEnd
-
- $linksContainer = $this->arrayManager->set(
- 'children',
- $linksContainer,
- [
- 'links_title' => $linksTitle,
- 'links_purchased_separately' => $linksPurchasedSeparately,
- 'link' => $this->getDynamicRows(),
- 'information_links' => $informationLinks,
- ]
- );
-
- return $this->arrayManager->set($linksPath, $meta, $linksContainer);
- }