Skip to content
Snippets Groups Projects
Commit bf71d355 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-6978: update limit on forms list block

parent 31331f24
No related branches found
No related tags found
1 merge request!38ISTWCMS-6978: Add code to view all webforms in webform list block on dashboard
...@@ -132,10 +132,10 @@ class FormsListBlock extends BlockBase implements ContainerFactoryPluginInterfac ...@@ -132,10 +132,10 @@ class FormsListBlock extends BlockBase implements ContainerFactoryPluginInterfac
// If the total number of results is greater than 20, then add // If the total number of results is greater than 20, then add
// a link to view all the webforms to the info part of the // a link to view all the webforms to the info part of the
// render array. // render array.
if ($total_num_of_results > 20) { if ($total_num_of_results > 50) {
$html = $this->t('@count webforms', ['@count' => $total_num_of_results]); $html = $this->t('@count webforms', ['@count' => $total_num_of_results]);
$html .= '<br />'; $html .= '<br />';
$html .= $this->t('There are more than 20 webforms, <a href="/admin/structure/webform">View all webforms</a>'); $html .= $this->t('There are more than 50 webforms, <a href="/admin/structure/webform">View all webforms</a>');
$build['entity_list']['info']['#markup'] = $html; $build['entity_list']['info']['#markup'] = $html;
} }
......
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