Skip to content
Snippets Groups Projects

Fixed phpcs issues.

Closed Silvi Sanghavi requested to merge issue/pager_for_node-3442525:3442525-fix-phpcs-issue into 1.0.x
7 files
+ 87
71
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -4,11 +4,11 @@ namespace Drupal\pagerfornode\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
use Drupal\Core\Url;
use Drupal\pagerfornode\PagerfornodePager;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Routing\CurrentRouteMatch;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
@@ -85,10 +85,10 @@ class PagerForNodeBlock extends BlockBase implements ContainerFactoryPluginInter
// Detect if we're viewing a node.
if ($node = $this->request->attributes->get('node')) {
// Make sure this node type is still enabled.
if ($this->pagerfornodePager->pagerfornode_use_pager($node)) {
if ($this->pagerfornodePager->pagerForNodeUsePager($node)) {
$build = [
'#theme' => 'pagerfornode',
'#list' => $this->pagerfornodePager->pagerfornode_build_list($node),
'#list' => $this->pagerfornodePager->pagerForNodeBuildList($node),
'#node' => $node,
'#attached' => [
'library' => [
@@ -99,7 +99,7 @@ class PagerForNodeBlock extends BlockBase implements ContainerFactoryPluginInter
// Set head elements.
if (is_object($node)) {
if ($this->pagerfornodeSettings->get('pagerfornode_head_' . $node->getType())) {
$links = $this->pagerfornodePager->pagerfornode_build_list($node);
$links = $this->pagerfornodePager->pagerForNodeBuildList($node);
if (!empty($links['prev']['nid'])) {
$build['#attached']['html_head_link'][][] = [
'rel' => 'prev',
Loading