src/Charcoal/Admin/Widget/TableWidget.php
protected function parsePropertyCellClasses(
        PropertyInterface $property,
        ModelInterface $object = null
    ) {
        unset($object);

        $ident = $property->ident();
        $classes = [ sprintf('property-%s', $ident) ];
        $options = $this->viewOptions($ident);

        if (isset($options['classes'])) {
            if (is_array($options['classes'])) {
                $classes = array_merge($classes, $options['classes']);
            } else {
                $classes[] = $options['classes'];
            }
        }

        return $classes;
    }
protected function parsePropertyCellClasses(
        PropertyInterface $property,
        ModelInterface $object = null
    ) {
        unset($object);

        $ident = $property->ident();
        $classes = [ sprintf('property-%s', $ident) ];
        $options = $this->viewOptions($ident);

        if (isset($options['classes'])) {
            if (is_array($options['classes'])) {
                $classes = array_merge($classes, $options['classes']);
            } else {
                $classes[] = $options['classes'];
            }
        }

        return $classes;
    }
protected function parsePropertyCellClasses ( PropertyInterface $ property , ModelInterface $ object = null ) { unset ( $ object ) ; $ ident = $ property -> ident ( ) ; $ classes = [ sprintf ( 'property-%s' , $ ident ) ] ; $ options = $ this -> viewOptions ( $ ident ) ; if ( isset ( $ options [ 'classes' ] ) ) { if ( is_array ( $ options [ 'classes' ] ) ) { $ classes = array_merge ( $ classes , $ options [ 'classes' ] ) ; } else { $ classes [ ] = $ options [ 'classes' ] ; } } return $ classes ; }
Filter the table cell's CSS classes before the property is assigned
to the object row.

This method is useful for classes using this trait.

@param  PropertyInterface   $property The current property.
@param  ModelInterface|null $object   Optional. The current row's object.
@return array
Filter the table cell s CSS classes before the property is assigned to the object row .