function SandwichInterface::order
Same name in other branches
- 8.x-1.x plugin_type_example/src/SandwichInterface.php \Drupal\plugin_type_example\SandwichInterface::order()
- 4.0.x modules/plugin_type_example/src/SandwichInterface.php \Drupal\plugin_type_example\SandwichInterface::order()
Place an order for a sandwich.
This is just an example method on our plugin that we can call to get something back.
Parameters
array $extras: An array of extra ingredients to include with this sandwich.
Return value
string Description of the sandwich that was just ordered.
1 method overrides SandwichInterface::order()
- SandwichBase::order in modules/
plugin_type_example/ src/ SandwichBase.php - Place an order for a sandwich.
File
-
modules/
plugin_type_example/ src/ SandwichInterface.php, line 52
Class
- SandwichInterface
- An interface for all Sandwich type plugins.
Namespace
Drupal\plugin_type_exampleCode
public function order(array $extras);