for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\PreferencesModule\Preference\Table;
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
/**
* Class AddonTableBuilder
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class AddonTableBuilder extends TableBuilder
{
* The addon type.
* @var string
protected $type;
* The table columns.
* @var array
protected $columns = [
[
'heading' => 'module::field.name.name',
'value' => 'entry.name',
],
'heading' => 'module::field.description.name',
'value' => 'entry.description',
];
* The table buttons.
protected $buttons = [
'preferences' => [
'href' => 'admin/preferences/{request.route.parameters.type}/{entry.namespace}',
* Get the type.
* @return string
public function getType()
return $this->type;
}
* Set the type.
* @param $type
* @return $this
public function setType($type)
$this->type = $type;
return $this;