Commit 1e9804a9 authored by aspilicious's avatar aspilicious Committed by tim.plunkett

Issue #1778960 by aspilicious, tim.plunkett: Remove pluginType property.

parent 72af92be
......@@ -105,9 +105,9 @@ public function init(&$view, &$options) {
}
$types = View::viewsHandlerTypes();
$plural = $this->pluginType;
if (isset($types[$this->pluginType]['plural'])) {
$plural = $types[$this->pluginType]['plural'];
$plural = $this->definition['plugin_type'];
if (isset($types[$plural]['plural'])) {
$plural = $types[$plural]['plural'];
}
if ($this->view->display_handler->isDefaulted($plural)) {
$display_id = 'default';
......
......@@ -33,11 +33,6 @@ abstract class PluginBase extends ComponentPluginBase {
*/
public $definition;
/**
* The plugin type of this plugin, for example style or query.
*/
public $pluginType = NULL;
/**
* Denotes whether the plugin has an additional options form.
*
......@@ -53,9 +48,6 @@ public function __construct(array $configuration, $plugin_id, DiscoveryInterface
$this->definition = $this->discovery->getDefinition($plugin_id) + $configuration;
// @todo Change calls to $this->pluginType to use the definition directly.
$this->pluginType = $this->definition['plugin_type'];
// @todo Change calls to $this->real_field to use the definition directly.
if (isset($this->definition['field'])) {
$this->realField = $this->definition['field'];
......
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