Block/Adminhtml/Rules/Edit.php
public function getHeaderText()
    {
        $rule = $this->registry->registry('current_ddg_rule');

        if ($rule->getId()) {
            return __('Edit Rule %1', $this->escapeHtml($rule->getName()));
        } else {
            return __('New Rule');
        }
    }
public function getHeaderText()
    {
        $rule = $this->registry->registry('current_ddg_rule');

        if ($rule->getId()) {
            return __('Edit Rule %1', $this->escapeHtml($rule->getName()));
        } else {
            return __('New Rule');
        }
    }
public function getHeaderText ( ) { $ rule = $ this -> registry -> registry ( 'current_ddg_rule' ) ; if ( $ rule -> getId ( ) ) { return __ ( 'Edit Rule %1' , $ this -> escapeHtml ( $ rule -> getName ( ) ) ) ; } else { return __ ( 'New Rule' ) ; } }
Getter for form header text.

@return string
Getter for form header text .