protected function TamperFormTrait::assertTamper in Feeds Tamper 8.2
Makes sure that the tamper exists.
Parameters
\Drupal\feeds\FeedTypeInterface $feeds_feed_type: The feed.
string $tamper_uuid: The tamper uuid.
Throws
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException In case a Tamper plugin with the given uuid could not be found.
2 calls to TamperFormTrait::assertTamper()
- TamperDeleteForm::buildForm in src/
Form/ TamperDeleteForm.php - Form constructor.
- TamperEditForm::buildForm in src/
Form/ TamperEditForm.php - Form constructor.
File
- src/
Form/ TamperFormTrait.php, line 82
Class
- TamperFormTrait
- Trait TamperFormTrait.
Namespace
Drupal\feeds_tamper\FormCode
protected function assertTamper(FeedTypeInterface $feeds_feed_type, $tamper_uuid) {
$tamper_meta = $this->feedTypeTamperManager
->getTamperMeta($feeds_feed_type);
try {
$tamper_meta
->getTamper($tamper_uuid);
} catch (PluginNotFoundException $e) {
throw new NotFoundHttpException();
}
}