thrownewInvalidPluginDefinitionException($id,sprintf('The "%s" CKEditor 5 plugin definition must have a plugin ID that starts with "%s".',$id,$expected_prefix));
foreach($definitionas$property=>$value){
if(property_exists($this,$property)){
$this->{$property}=$value;
}
else{
thrownew\InvalidArgumentException(sprintf('Property %s with value %s does not exist on %s.',$property,$value,__CLASS__));
thrownewInvalidPluginDefinitionException($id,sprintf('The "%s" CKEditor 5 plugin definition must have a plugin ID that starts with "%s".',$id,$expected_prefix));