abstract public function SandwichBase::order in Examples for Developers 3.x
Same name and namespace in other branches
- 8 plugin_type_example/src/SandwichBase.php \Drupal\plugin_type_example\SandwichBase::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.
Overrides SandwichInterface::order
2 methods override SandwichBase::order()
- ExampleHamSandwich::order in modules/
plugin_type_example/ src/ Plugin/ Sandwich/ ExampleHamSandwich.php - Place an order for a sandwich.
- ExampleMeatballSandwich::order in modules/
plugin_type_example/ src/ Plugin/ Sandwich/ ExampleMeatballSandwich.php - Place an order for a sandwich.
File
- modules/
plugin_type_example/ src/ SandwichBase.php, line 51
Class
- SandwichBase
- A base class to help developers implement their own sandwich plugins.
Namespace
Drupal\plugin_type_exampleCode
public abstract function order(array $extras);