You are here

function ds_help in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 ds.module \ds_help()
  2. 8.3 ds.module \ds_help()

Implements hook_help().

File

./ds.module, line 29
Display Suite core functions.

Code

function ds_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.ds':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<br/>' . t('The <a href=":link">Display Suite</a> module allows you to take full control over how your content is displayed using a drag and drop interface. Arrange your nodes, views, comments, user data etc. the way you want without having to work your way through dozens of template files.', [
        ':link' => 'https://www.drupal.org/project/ds',
      ]);
      $output .= '<br/>' . t('It allows you to apply theme templates to content type displays. It comes with predefined layouts such as "two columns", "three columns stacked", "three columns fluid" et cetera, but also lets you define your own.');
      $output .= '<br/>' . t('Display Suite allows you to create fields from tokens or blocks.  This gives you full control over the way content is displayed without having to maintain dozens of twig files.');
      $output .= '<br/>' . t('More documentation about Display Suite in Drupal 8 can be found in Drupal\'s <a href=":documentation">Community Documentation </a>.', [
        ':documentation' => 'https://www.drupal.org/node/2718943',
      ]);
      return $output;
  }
}