The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
22
23
return $form;
24
}
25
26
/**
27
* {@inheritdoc}
28
*/
29
public function save(array $form, FormStateInterface $form_state) {
30
$entity = $this->entity;
31
$status = parent::save($form, $form_state);
32
33
switch ($status) {
34
case SAVED_NEW:
35
drupal_set_message($this->t('Created the %label Event template.', [
36
'%label' => $entity->label(),
37
]));
38
break;
39
40
default:
41
drupal_set_message($this->t('Saved the %label Event template.', [
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.