Commit 9d67076a authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4050: removing unused code in UW Dashboard allowed layouts

parent 1c7c8ae7
......@@ -18,52 +18,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/
class UwDashboardAllowedLayouts extends EntityViewModeRestriction {
use PluginHelperTrait;
/** @var \Drupal\Core\Config\ConfigFactoryInterface */
protected $configFactory;
/**
* @inheritDoc
*/
public static function create(
ContainerInterface $container,
array $configuration,
$plugin_id,
$plugin_definition
) {
return new static(
$configuration,
$plugin_id,
$plugin_definition,
$container->get('config.factory')
);
}
/**
* Constructs a Drupal\Component\Plugin\PluginBase object.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
* @param string $plugin_id
* The plugin_id for the plugin instance.
* @param mixed $plugin_definition
* The plugin implementation definition.
* @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
* Config factory to load blocks allowed to be displayed on dashboard.
*/
public function __construct(
array $configuration,
$plugin_id,
$plugin_definition,
ConfigFactoryInterface $configFactory
) {
$this->configuration = $configuration;
$this->pluginId = $plugin_id;
$this->pluginDefinition = $plugin_definition;
$this->configFactory = $configFactory;
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment