Neos.Neos/Classes/Service/ContentElementWrappingService.php
protected function addCssClasses(array $attributes, NodeInterface $node, array $initialClasses = [])
    {
        $classNames = $initialClasses;
        // FIXME: The `dimensionsAreMatchingTargetDimensionValues` method should become part of the NodeInterface if it is used here .
        if ($node instanceof Node && !$node->dimensionsAreMatchingTargetDimensionValues()) {
            $classNames[] = 'neos-contentelement-shine-through';
        }

        if ($classNames !== []) {
            $attributes['class'] = implode(' ', $classNames);
        }

        return $attributes;
    }
protected function addCssClasses(array $attributes, NodeInterface $node, array $initialClasses = [])
    {
        $classNames = $initialClasses;
        // FIXME: The `dimensionsAreMatchingTargetDimensionValues` method should become part of the NodeInterface if it is used here .
        if ($node instanceof Node && !$node->dimensionsAreMatchingTargetDimensionValues()) {
            $classNames[] = 'neos-contentelement-shine-through';
        }

        if ($classNames !== []) {
            $attributes['class'] = implode(' ', $classNames);
        }

        return $attributes;
    }
protected function addCssClasses ( array $ attributes , NodeInterface $ node , array $ initialClasses = [ ] ) { $ classNames = $ initialClasses ; // FIXME: The `dimensionsAreMatchingTargetDimensionValues` method should become part of the NodeInterface if it is used here . if ( $ node instanceof Node && ! $ node -> dimensionsAreMatchingTargetDimensionValues ( ) ) { $ classNames [ ] = 'neos-contentelement-shine-through' ; } if ( $ classNames !== [ ] ) { $ attributes [ 'class' ] = implode ( ' ' , $ classNames ) ; } return $ attributes ; }
Add required CSS classes to the attributes.

@param array $attributes
@param NodeInterface $node
@param array $initialClasses
@return array
Add required CSS classes to the attributes .