createDataColumn() protected méthode

Creates a DataColumn object based on a string in the format of "attribute:format:label".
protected createDataColumn ( string $text ) : DataColumn
$text string the column specification string
Résultat DataColumn the column instance
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 protected function createDataColumn($text)
 {
     $column = static::column($text);
     if (is_array($column)) {
         $column['attribute'] = $column['attribute'] ?: $text;
         return $this->createColumnObject($column);
     }
     return parent::createDataColumn($text);
 }