Skip to content
Snippets Groups Projects

Imlementing SetIgnoreDestination and getIgnoreDestination

Closed fox_01 requested to merge issue/authorization-3409489:3409489-fatal-error-class into 8.x-1.x
1 file
+ 21
0
Compare changes
  • Side-by-side
  • Inline
+ 21
0
@@ -49,6 +49,13 @@ class SubFormState implements FormStateInterface {
@@ -49,6 +49,13 @@ class SubFormState implements FormStateInterface {
*/
*/
protected $subKeys;
protected $subKeys;
 
/**
 
* The property which stores the destination status.
 
*
 
* @var bool
 
*/
 
private $ignoreDestination = TRUE;
 
/**
/**
* Internal storage for the sub-state, writing into the main form state.
* Internal storage for the sub-state, writing into the main form state.
*
*
@@ -839,4 +846,18 @@ class SubFormState implements FormStateInterface {
@@ -839,4 +846,18 @@ class SubFormState implements FormStateInterface {
return $this;
return $this;
}
}
 
/**
 
* {@inheritdoc}
 
*/
 
public function setIgnoreDestination($value = TRUE) {
 
$this->set('ignore_destination', $value);
 
}
 
 
/**
 
* {@inheritdoc}
 
*/
 
public function getIgnoreDestination() {
 
return $this->get('ignore_destination');
 
}
 
}
}
Loading