protected function get_error_message($message = null) {
        global $OUTPUT;

        if (empty($message)) {
            $message = get_string('apierror', 'block_tag_youtube');
        }
        return $OUTPUT->notification($message);
    }
protected function get_error_message($message = null) {
        global $OUTPUT;

        if (empty($message)) {
            $message = get_string('apierror', 'block_tag_youtube');
        }
        return $OUTPUT->notification($message);
    }
protected function get_error_message ( $ message = null ) { global $ OUTPUT ; if ( empty ( $ message ) ) { $ message = get_string ( 'apierror' , 'block_tag_youtube' ) ; } return $ OUTPUT -> notification ( $ message ) ; }
Returns an error message.

Useful when the block is not properly set or something goes wrong.

@param string $message The message to display.
@return string HTML
Returns an error message .