Completed
Push — 146-change-the-paginator-bundl... ( a2c23a...f93d38 )
by
unknown
64:22
created

TwitterBootstrap3Template::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Pagerfanta package.
5
 *
6
 * (c) Pablo Díez <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace SumoCoders\FrameworkCoreBundle\Twig;
13
14
use Pagerfanta\View\Template\TwitterBootstrapTemplate;
15
16
/**
17
 * TwitterBootstrap3Template
18
 */
19
class TwitterBootstrap3Template extends TwitterBootstrapTemplate
20
{
21
    public function __construct()
22
    {
23
        parent::__construct();
24
25
        $this->setOptions(array('active_suffix' => '<span class="sr-only">current page</span>'));
26
    }
27
28
    public function container()
29
    {
30
        return sprintf(
31
            '<nav aria-label="Page navigation"><ul class="%s">%%pages%%</ul></nav>',
32
            $this->option('css_container_class')
33
        );
34
    }
35
}
36