Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PropertyMapper.php
Go to the documentation of this file.
1 <?php
9 
11 
13 {
23  public function map(array $input, $entityTypeId)
24  {
25  return [
26  'is_visible' => $this->_getValue($input, 'visible', 1),
27  'is_system' => $this->_getValue($input, 'system', 1),
28  'input_filter' => $this->_getValue($input, 'input_filter', null),
29  'multiline_count' => $this->_getValue($input, 'multiline_count', 0),
30  'validate_rules' => $this->_getValue($input, 'validate_rules', null),
31  'data_model' => $this->_getValue($input, 'data', null),
32  'sort_order' => $this->_getValue($input, 'position', 0),
33  'is_used_in_grid' => $this->_getValue($input, 'is_used_in_grid', 0),
34  'is_visible_in_grid' => $this->_getValue($input, 'is_visible_in_grid', 0),
35  'is_filterable_in_grid' => $this->_getValue($input, 'is_filterable_in_grid', 0),
36  'is_searchable_in_grid' => $this->_getValue($input, 'is_searchable_in_grid', 0),
37  ];
38  }
39 }