public function SandwichInterface::calories in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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 modules/
plugin_type_example/ src/ SandwichBase.php - Provide the number of calories per serving for the sandwich.
File
- modules/
plugin_type_example/ src/ SandwichInterface.php, line 38
Class
- SandwichInterface
- An interface for all Sandwich type plugins.
Namespace
Drupal\plugin_type_exampleCode
public function calories();