REBELinBLUE\Deployer\Presenters\DeploymentPresenter::presentOptionalCommandsUsed PHP Method

presentOptionalCommandsUsed() public method

Gets the IDs of the optional commands which were included in the deployments, for use in a data attribute.
    public function presentOptionalCommandsUsed()
    {
        return $this->getObject()->commands->filter(function (Command $command) {
            return $command->optional;
        })->implode('id', ',');
    }