File: D:/HostingSpaces/SBogers33/bbec.nl/workbench/komma/kms/src/Komma/Kms/Core/Attributes/KmsSlug.php
<?php
/**
* Short description for the file.
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace Komma\Kms\Core\Attributes;
use View;
class KmsSlug extends KmsAttribute{
public $label;
public $placeholder;
public $autoSlugField;
function __construct($key, $value, array $options = [], array $errors = [], $languageId = null, $section = null)
{
parent::__construct($key, $value, $options, $errors, $languageId, $section);
$this->label = $this->getOption('label', $key);
$this->placeholder = $this->getOption('placeholder', $key);
$this->autoSlugField = $this->getOption('autoSlugField', $key, null);
}
public function render()
{
return View::make('kms::attributes.slug', [
'attribute' => $this
]);
}
}