for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Itstructure\FieldWidgets;
use yii\helpers\ArrayHelper;
/**
* Class FieldTypeText
* Class for printing the form text field.
*
* @package Itstructure\FieldWidgets
*/
class FieldTypeText extends FieldType
{
* @return string
public function run(): string
return $this->getField()
->textInput(
ArrayHelper::merge(
[
'maxlength' => true,
'style' => 'width: 50%;'
],
$this->getOptions()
)
->label($this->getLabel());
}