PluginDefinition.php in Plugin 8.2
File
src/PluginDefinition/PluginDefinition.php
View source
<?php
namespace Drupal\plugin\PluginDefinition;
abstract class PluginDefinition implements PluginDefinitionInterface {
use MergeablePluginDefinitionTrait;
protected $id;
protected $class;
protected $provider;
public function setId($id) {
$this->id = $id;
return $this;
}
public function getId() {
return $this->id;
}
public function setClass($class) {
PluginDefinitionValidator::validateClass($class);
$this->class = $class;
return $this;
}
public function getClass() {
return $this->class;
}
public function setProvider($provider) {
$this->provider = $provider;
return $this;
}
public function getProvider() {
return $this->provider;
}
}