You are here

public function SandwichInterface::order in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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 plugin_type_example/src/SandwichBase.php
Place an order for a sandwich.

File

plugin_type_example/src/SandwichInterface.php, line 52

Class

SandwichInterface
An interface for all Sandwich type plugins.

Namespace

Drupal\plugin_type_example

Code

public function order(array $extras);