You are here

public function CKEditor5PluginDefinition::setClass in Drupal 10

Sets the class.

Parameters

string $class: A fully qualified class name.

Return value

static

Throws

\InvalidArgumentException If the class is invalid.

Overrides PluginDefinition::setClass

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php, line 302

Class

CKEditor5PluginDefinition
Provides an implementation of a CKEditor 5 plugin definition.

Namespace

Drupal\ckeditor5\Plugin

Code

public function setClass($class) {
  $this->drupal['class'] = $class;
  return $this;
}