DNDeployment::getFullDeployMessages PHP Method

getFullDeployMessages() public method

Elements of the array will be rendered literally.
public getFullDeployMessages ( ) : ArrayList
return ArrayList
    public function getFullDeployMessages()
    {
        $strategy = $this->getDeploymentStrategy();
        if ($strategy->getActionCode() !== 'full') {
            return null;
        }
        $changes = $strategy->getChangesModificationNeeded();
        $messages = [];
        foreach ($changes as $change => $details) {
            if ($change === 'Code version') {
                continue;
            }
            $messages[] = ['Flag' => sprintf('<span class="label label-default full-deploy-info-item">%s</span>', $change[0]), 'Text' => sprintf('%s changed', $change)];
        }
        if (empty($messages)) {
            $messages[] = ['Flag' => '', 'Text' => '<i>Environment changes have been made.</i>'];
        }
        return new ArrayList($messages);
    }