You are here

public function PollChoiceInterface::needsSaving in Poll 8

Whether or not the choice must be saved when the poll is saved.

Parameters

null|bool $new_value: Pass FALSE or TRUE to change the current value.

Return value

bool Returns the current value.

1 method overrides PollChoiceInterface::needsSaving()
PollChoice::needsSaving in src/Entity/PollChoice.php
Whether or not the choice must be saved when the poll is saved.

File

src/PollChoiceInterface.php, line 32

Class

PollChoiceInterface
Provides an interface defining an poll entity.

Namespace

Drupal\poll

Code

public function needsSaving($new_value = NULL);