Skip to content
Snippets Groups Projects

Issue #3338259: Implement hook_help()

1 file
+ 28
0
Compare changes
  • Side-by-side
  • Inline
+ 28
0
@@ -13,7 +13,35 @@ use Drupal\Core\Entity\RevisionableInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\SubformState;
use Drupal\Core\Url;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function frontend_editing_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the frontend_editing module.
case 'help.page.frontend_editing':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module allows to edit entities directly in the
frontend using a side panel.') . '</p>';
$output .= '<p>' . t('It is built as a lightweight integration, that does
not rely on cores Settings Tray, Contextual Links, or Quick Edit
modules') . '</p>';
$output .= '<p>' . t('Instead this module adds the link to editing forms of
entities to the frontend, and provides a sidebar to load these forms as
iframes.') . '</p>';
$output .= '<p>' . t('The benefit of this approach is, that editing in the
frontend uses the same styles as editing in the backend. This allows a
consistent editorial experience.') . '</p>';
$output .= '<p>' . t('The module works nicely with paragraphs and blocks,
but other entities can be edited, too.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_entity_view_alter().
*/
Loading