You are here

public function ArrayPluginDefinitionDecorator::setProvider in Plugin 8.2

Sets the plugin provider.

The provider is the name of the module that provides the plugin, or "core', or "component".

Parameters

string $provider: The provider.

Return value

$this

Overrides PluginDefinitionInterface::setProvider

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 174

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setProvider($provider) {
  $this->arrayDefinition['provider'] = $provider;
  return $this;
}