Skip to content
Snippets Groups Projects
Commit ad5c0219 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent b48a1266
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -112,8 +112,8 @@ public function disable() { ...@@ -112,8 +112,8 @@ public function disable() {
/** /**
* Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus(). * Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::setStatus().
*/ */
public function setStatus(bool $status) { public function setStatus($status) {
$this->status = $status; $this->status = (bool) $status;
return $this; return $this;
} }
......
...@@ -57,7 +57,7 @@ public function disable(); ...@@ -57,7 +57,7 @@ public function disable();
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface * @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The class instance that this method is called on. * 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. * Returns whether the configuration entity is enabled.
......
...@@ -146,6 +146,13 @@ public function get($property_name, $langcode = NULL) { ...@@ -146,6 +146,13 @@ public function get($property_name, $langcode = NULL) {
return isset($this->{$property_name}) ? $this->{$property_name} : 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(). * Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::set().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment