Esempio n. 1
0
 private function extractColumnConfig(ColumnInterface $column)
 {
     $data = array('id' => $column->getOption('name'), 'name' => $column->getOption('name'), 'type' => $column->getType()->getName(), 'type_class' => get_class($column->getType()), 'passed_options' => array(), 'resolved_options' => array());
     foreach ($column->getOptions() as $option => $value) {
         if (substr($option, 0, 1) !== '_') {
             $data['resolved_options'][$option] = $this->valueExporter->exportValue($value);
         }
     }
     foreach ($column->getOption('_passed_options') as $option => $value) {
         $data['passed_options'][$option] = $this->valueExporter->exportValue($value);
     }
     return $data;
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function buildHeaderView(array &$view, ColumnInterface $column)
 {
     $view = array('sort' => $column->getOption('allow_sort'), 'title' => $column->getOption('title'), 'width' => $column->getOption('width'));
 }