function FormTestRecipeInputForm::getRecipe

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/form_test/src/Form/FormTestRecipeInputForm.php \Drupal\form_test\Form\FormTestRecipeInputForm::getRecipe()

Returns the recipe object under test.

Return value

\Drupal\Core\Recipe\Recipe A Recipe object for the input_test recipe.

3 calls to FormTestRecipeInputForm::getRecipe()
FormTestRecipeInputForm::buildForm in core/modules/system/tests/modules/form_test/src/Form/FormTestRecipeInputForm.php
Form constructor.
FormTestRecipeInputForm::submitForm in core/modules/system/tests/modules/form_test/src/Form/FormTestRecipeInputForm.php
Form submission handler.
FormTestRecipeInputForm::validateForm in core/modules/system/tests/modules/form_test/src/Form/FormTestRecipeInputForm.php
Form validation handler.

File

core/modules/system/tests/modules/form_test/src/Form/FormTestRecipeInputForm.php, line 33

Class

FormTestRecipeInputForm
Form to test recipe input functionality.

Namespace

Drupal\form_test\Form

Code

private function getRecipe() : Recipe {
  return Recipe::createFromDirectory('core/tests/fixtures/recipes/input_test');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.