GridStackSkinPluginBase.php in GridStack 8.2
File
src/GridStackSkinPluginBase.php
View source
<?php
namespace Drupal\gridstack;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class GridStackSkinPluginBase extends GridStackPluginBase implements GridStackSkinPluginInterface {
protected $skins;
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
$instance->skins = $instance
->setSkins();
return $instance;
}
public function skins() {
return $this->skins;
}
protected abstract function setSkins();
}