Skip to content
Snippets Groups Projects
Commit ad1de97f authored by NGUYEN Bao's avatar NGUYEN Bao
Browse files

Issue #3358758 : Fix the issues reported by phpcs (module file)

parent 158563d1
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@ projects using the Scrum methodology.
you can create a content type with a status field,
which can be a
- Taxonomy field
- List field,
- List field
- State machine
- Content Moderation(fully compatible)
- Workflow.
......
......@@ -5,7 +5,6 @@
* Kanban Views module help and theme functions.
*/
use Drupal\views_kanban\Event\KanbanNodeInsertEvent;
use Drupal\Core\Routing\RouteMatchInterface;
/**
......@@ -22,6 +21,7 @@ function views_kanban_help($route_name, RouteMatchInterface $route_match) {
$output .= '<p>' . t('You can create a content type with a status field, which can be a') . '</p>';
$output .= '<ul><li>' . t('Taxonomy field') . '</li>';
$output .= '<li>' . t('List field') . '</li>';
$output .= '<li>' . t('State machine') . '</li>';
$output .= '<li>' . t('Workflow') . '</li>';
$output .= '<li>' . t('Content Moderation(fully compatible)') . '</li></ul>';
$output .= '<p>' . t('You also have the option to include a progress field,
......@@ -31,7 +31,7 @@ which is a numeric field with a value between 0 and 100') . '</p>';
$output .= '<ul><li>' . t('plain text') . '</li>';
$output .= '<li>' . t('double field with a datetime (datetime - text)') . '</li></ul>';
$output .= '<p>' . t('Create a view with style Format "Kanban". Change Show to Fields.') . '</p>';
$output .= '<p>' . t('You can add fields you want, Exclude from display the field if you don\'t want show (like history field). and define the field selected the Format / Settings.') . '</p>';
$output .= '<p>' . t("You can add fields you want, Exclude from display the field if you don't want show (like history field). and define the field selected the Format / Settings.") . '</p>';
$output .= '<p>' . t('In the format settings, you can select your preferred fields, with the **status field being required** and the others being optional.') . '</p>';
$output .= '<p>' . t('This module also supports <a href="https://www.drupal.org/project/pwa_firebase" rel="nofollow">send notification with firebase</a>, which can be sent to assignors when the status of a task has changed.') . '</p>';
$output .= '<p>' . t('The module design base on a <a href="https://www.drupal.org/project/bootstrap5_admin" rel="nofollow">Bootstrap 5 theme</a>') . '</p>';
......@@ -40,18 +40,20 @@ which is a numeric field with a value between 0 and 100') . '</p>';
default:
}
}
/**
* Implements hook_theme().
*/
function views_kanban_theme($existing, $type, $theme, $path) {
// Store Kanban preprocess theme functions in a separate .inc file.
\Drupal::moduleHandler()->loadInclude('views_kanban', 'inc', 'views_kanban.theme');
\Drupal::moduleHandler()
->loadInclude('views_kanban', 'inc', 'views_kanban.theme');
return array(
'views_view_kanban' => array(
return [
'views_view_kanban' => [
'file' => 'views_kanban.theme.inc',
),
'views_email_kanban' => array(
],
'views_email_kanban' => [
'template' => 'views-email-kanban',
'variables' => [
'message' => [],
......@@ -64,6 +66,6 @@ function views_kanban_theme($existing, $type, $theme, $path) {
'btn_text' => '',
'link' => '',
],
),
);
],
];
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment