/** * Check if the submit form value use the show command to debug. * * @param string $coord * @return bool */ public function isDebug() { $coords = $this->form->getParameterData('coord'); return !is_null($coords) && 'show' == $coords; }