for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\tagattributes\Plugins\Attribute;
use drupol\tagattributes\AttributeBase;
use drupol\tagattributes\AttributeInterface;
/**
* Class Value.
*
* @package drupol\tagattributes\Plugins\Attribute
*/
class Value extends AttributeBase implements AttributeInterface
{
const ATTRIBUTE = 'value';
* {inheritdoc}
public function render()
$output = $this->getName();
if (!empty($this->getValue())) {
$output .= sprintf('="%s"', htmlspecialchars(implode(' ', $this->getValue()), ENT_COMPAT));
}
return $output;