![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-customer/Model/ResourceModel/Setup/ |
<?php /** * Customer attribute property mapper * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Customer\Model\ResourceModel\Setup; use Magento\Eav\Model\Entity\Setup\PropertyMapperAbstract; class PropertyMapper extends PropertyMapperAbstract { /** * Map input attribute properties to storage representation * * @param array $input * @param int $entityTypeId * @return array * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function map(array $input, $entityTypeId) { return [ 'is_visible' => $this->_getValue($input, 'visible', 1), 'is_system' => $this->_getValue($input, 'system', 1), 'input_filter' => $this->_getValue($input, 'input_filter', null), 'multiline_count' => $this->_getValue($input, 'multiline_count', 0), 'validate_rules' => $this->_getValue($input, 'validate_rules', null), 'data_model' => $this->_getValue($input, 'data', null), 'sort_order' => $this->_getValue($input, 'position', 0), 'is_used_in_grid' => $this->_getValue($input, 'is_used_in_grid', 0), 'is_visible_in_grid' => $this->_getValue($input, 'is_visible_in_grid', 0), 'is_filterable_in_grid' => $this->_getValue($input, 'is_filterable_in_grid', 0), 'is_searchable_in_grid' => $this->_getValue($input, 'is_searchable_in_grid', 0), ]; } }