def init_app(self, app):
        """Flask application initialization.

        :param app: The Flask application.
        """
        self.init_config(app)
        app.extensions['invenio-records-ui'] = _RecordUIState(app)
Flask application initialization.

        :param app: The Flask application.