You are here

public function ArrayPluginDefinitionDecorator::setOperationsProviderClass in Plugin 8.2

Sets the operations provider class.

Parameters

string $class: The fully qualified name of a class that implements \Drupal\plugin\PluginOperationsProviderInterface.

Return value

$this

Throws

\InvalidArgumentException

Overrides PluginOperationsProviderDefinitionInterface::setOperationsProviderClass

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 361

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setOperationsProviderClass($class) {
  $this->arrayDefinition['operations_provider'] = $class;
  return $this;
}