public function getId($suffix = null)
    {
        $id = class_basename(get_called_class()) . '-' . $this->action;
        if ($suffix !== null) {
            $id .= '-' . $suffix;
        }

        return $id;
    }
public function getId($suffix = null)
    {
        $id = class_basename(get_called_class()) . '-' . $this->action;
        if ($suffix !== null) {
            $id .= '-' . $suffix;
        }

        return $id;
    }
public function getId ( $ suffix = null ) { $ id = class_basename ( get_called_class ( ) ) . '-' . $ this -> action ; if ( $ suffix !== null ) { $ id .= '-' . $ suffix ; } return $ id ; }
Returns a unique ID for the controller and route. Useful in creating HTML markup.
Returns a unique ID for the controller and route . Useful in creating HTML markup .