Commit ad5c0219 authored by webchick's avatar webchick

Issue #1911814 follow-up by alexpott, dawehner, damiankloip: Oops. Broken HEAD.

parent b48a1266
......@@ -112,8 +112,8 @@ public function disable() {
/**
* Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus().
*/
public function setStatus(bool $status) {
$this->status = $status;
public function setStatus($status) {
$this->status = (bool) $status;
return $this;
}
......
......@@ -57,7 +57,7 @@ public function disable();
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The class instance that this method is called on.
*/
public function setStatus(bool $status);
public function setStatus($status);
/**
* Returns whether the configuration entity is enabled.
......
......@@ -146,6 +146,13 @@ public function get($property_name, $langcode = NULL) {
return isset($this->{$property_name}) ? $this->{$property_name} : NULL;
}
/**
* Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus().
*/
public function setStatus($status) {
return $this->storage->setStatus($status);
}
/**
* Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::set().
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment