else { $form_object =
$this->classResolver->
getInstanceFromDefinition($form_class);
} // Ensure the resulting object is a plugin form.
if (!
$form_object instanceof PluginFormInterface
) { throw new InvalidPluginDefinitionException($plugin->
getPluginId(),
sprintf('The "%s" plugin did not specify a valid "%s" form class, must implement \Drupal\Core\Plugin\PluginFormInterface',
$plugin->
getPluginId(),
$operation));
} if ($form_object instanceof PluginAwareInterface
) { $form_object->
setPlugin($plugin);
} return $form_object;
}}