public function performPublish($record)
    {
        if ($record && !$record->canPublish()) {
            return Security::permissionFailure($this);
        }

        $record->publishRecursive();
    }
public function performPublish($record)
    {
        if ($record && !$record->canPublish()) {
            return Security::permissionFailure($this);
        }

        $record->publishRecursive();
    }
public function performPublish ( $ record ) { if ( $ record && ! $ record -> canPublish ( ) ) { return Security :: permissionFailure ( $ this ) ; } $ record -> publishRecursive ( ) ; }
Actually perform the publication step

@param Versioned|DataObject $record
@return mixed
Actually perform the publication step