for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the adminbsb-material-design-bundle package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\AdminBSBBundle\Twig\Extension\Typography;
use Twig_SimpleFunction;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
* Overlined typography Twig extension.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\AdminBSBBundle\Twig\Extension\Typography
class OverlinedTypographyTwigExtension extends AbstractTypographyTwigExtension {
* Service name.
* @var string
const SERVICE_NAME = "webeweb.bundle.adminbsbbundle.twig.extension.typography.overlined";
* Constructor.
public function __construct() {
parent::__construct();
}
* Displays an AdminBSB overlined text.
* @param array $args The arguments.
* @return string Returns the AdminBSB overlined text.
public function adminBSBOverlineFunction(array $args = []) {
return $this->adminBSBOverline(ArrayUtility::get($args, "content"));
* Get the Twig functions.
* @return array Returns the Twig functions.
public function getFunctions() {
return [
new Twig_SimpleFunction("adminBSBOverline", [$this, "adminBSBOverlineFunction"], ["is_safe" => ["html"]]),
];