function Provision_ChainedState::succeed

7.x-3.x ChainedState.php Provision_ChainedState::succeed($message)

Log a notice into the logging system, if the last operation completed succesfully.

Parameters

$message: The message to log, a string.

File

Provision/ChainedState.php, line 41
The Provision_ChainedState class.

Class

Provision_ChainedState
A base class for the service and file handling classes that implements chaining of methods.

Code

function succeed($message) {
  if ($this->last_status === TRUE) {
    drush_log(dt($message, $this->tokens), 'success');
  }

  return $this;
}