You are here

public function SandwichInterface::calories 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::calories()

Provide the number of calories per serving for the sandwich.

Return value

float The number of calories per serving.

1 method overrides SandwichInterface::calories()
SandwichBase::calories in plugin_type_example/src/SandwichBase.php
Provide the number of calories per serving for the sandwich.

File

plugin_type_example/src/SandwichInterface.php, line 38

Class

SandwichInterface
An interface for all Sandwich type plugins.

Namespace

Drupal\plugin_type_example

Code

public function calories();