Bootstrapper\MediaObject::getPosition PHP Method

getPosition() protected method

Get the position
protected getPosition ( array $contents ) : string
$contents array
return string pull-right if the position key equals right. pull-left otherwise
    protected function getPosition(array $contents)
    {
        if (isset($contents['position']) && $contents['position'] == 'right') {
            return 'pull-right';
        }
        return 'pull-left';
    }