This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from wenmingtang/master
Add twitter_bootstrap4_translated service
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/* | ||
* This file is part of the Pagerfanta package. | ||
* | ||
* (c) Pablo Díez <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Wenming Tang <[email protected]> | ||
*/ | ||
namespace WhiteOctober\PagerfantaBundle\Tests\View; | ||
|
||
class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedViewTest | ||
{ | ||
protected function viewClass() | ||
{ | ||
return 'Pagerfanta\View\TwitterBootstrap4View'; | ||
} | ||
protected function translatedViewClass() | ||
{ | ||
return 'WhiteOctober\PagerfantaBundle\View\TwitterBootstrap4TranslatedView'; | ||
} | ||
protected function translatedViewName() | ||
{ | ||
return 'twitter_bootstrap4_translated'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Pagerfanta package. | ||
* | ||
* (c) Pablo Díez <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Wenming Tang <[email protected]> | ||
*/ | ||
|
||
namespace WhiteOctober\PagerfantaBundle\View; | ||
|
||
/** | ||
* TwitterBootstrap4TranslatedView | ||
* | ||
* This view renders the twitter bootstrap4 view with the text translated. | ||
*/ | ||
class TwitterBootstrap4TranslatedView extends TwitterBootstrapTranslatedView | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getName() | ||
{ | ||
return 'twitter_bootstrap4_translated'; | ||
} | ||
} |