12345678910111213141516171819202122 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Ui\DataProvider;
- use Magento\Framework\Data\Collection;
- /**
- * Class AddFieldToCollection
- */
- class AddFieldToCollection implements AddFieldToCollectionInterface
- {
- /**
- * {@inheritdoc}
- */
- public function addField(Collection $collection, $field, $alias = null)
- {
- $collection->addFieldToSelect($field, $alias);
- }
- }
|