function SandwichBase::order

Same name and namespace in other branches
  1. 3.x modules/plugin_type_example/src/SandwichBase.php \Drupal\plugin_type_example\SandwichBase::order()
  2. 4.0.x modules/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 plugin_type_example/src/Plugin/Sandwich/ExampleHamSandwich.php
Place an order for a sandwich.
ExampleMeatballSandwich::order in plugin_type_example/src/Plugin/Sandwich/ExampleMeatballSandwich.php
Place an order for a sandwich.

File

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_example

Code

public abstract function order(array $extras);