function drush_outputformat_variables::validate

8.0.x variables.inc drush_outputformat_variables::validate()
6.x variables.inc drush_outputformat_variables::validate()
7.x variables.inc drush_outputformat_variables::validate()
master variables.inc drush_outputformat_variables::validate()

File

commands/core/outputformat/variables.inc, line 29

Class

drush_outputformat_variables
Output formatter 'variables'

Code

function validate() {
  $metadata = $this->engine_config;
  $this->sub_engine = drush_load_engine('outputformat', 'var_export', NULL, NULL, $metadata);
  if (!is_object($this->sub_engine)) {
    return FALSE;
  }
  return TRUE;
}