code: private void addContentInfo() {
  
          if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject()
              && (null == m_searchController.getCommon().getConfig().getSolrIndex())
              && (null != m_addContentInfoForEntries)) {
              CmsSolrQuery query = new CmsSolrQuery();
              m_searchController.addQueryParts(query, m_cms);
              query.setStart(Integer.valueOf(0));
              query.setRows(m_addContentInfoForEntries);
              CmsContentLoadCollectorInfo info = new CmsContentLoadCollectorInfo();
              info.setCollectorClass(this.getClass().getName());
              info.setCollectorParams(query.getQuery());
              info.setId((new CmsUUID()).getStringValue());
              if (CmsJspTagEditable.getDirectEditProvider(pageContext) != null) {
                  try {
                      CmsJspTagEditable.getDirectEditProvider(pageContext).insertDirectEditListMetadata(
                          pageContext,
                          info);
                  } catch (JspException e) {
                      LOG.error("Could not write content info.", e);
                  }
              }
          }
      }
docs: Adds the content info for the collected resources used in the "This page" publish dialog.