ExampleMeatballSandwich::$day

Same name in other branches
  1. 4.0.x modules/plugin_type_example/src/Plugin/Sandwich/ExampleMeatballSandwich.php \Drupal\plugin_type_example\Plugin\Sandwich\ExampleMeatballSandwich::day

The day the sandwich is ordered.

Since meatball sandwiches have a special behavior on Sundays, and since we want to test that behavior on days other than Sunday, we have to store the day as a property so we can test it.

This is the string representation of the day of the week you get from date('D').

Type: string

File

modules/plugin_type_example/src/Plugin/Sandwich/ExampleMeatballSandwich.php, line 53

Class

ExampleMeatballSandwich
Provides a meatball sandwich.

Namespace

Drupal\plugin_type_example\Plugin\Sandwich

Code

protected $day;