public function BusinessRulesItemBase::getSettings in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/BusinessRulesItemBase.php \Drupal\business_rules\Entity\BusinessRulesItemBase::getSettings()
Return the item settings.
Parameters
string $settingId: the settings ID for the config entity.
Return value
array|string The item settings.
Overrides ItemInterface::getSettings
2 calls to BusinessRulesItemBase::getSettings()
- Action::calculateDependencies in src/
Entity/ Action.php - Calculates dependencies and stores them in the dependency property.
- Condition::calculateDependencies in src/
Entity/ Condition.php - Calculates dependencies and stores them in the dependency property.
File
- src/
Entity/ BusinessRulesItemBase.php, line 143
Class
- BusinessRulesItemBase
- Class Item.
Namespace
Drupal\business_rules\EntityCode
public function getSettings($settingId = '') {
if ($settingId == '') {
return $this->settings;
}
elseif (empty($this->settings[$settingId])) {
if (array_key_exists($settingId, $this->settings)) {
if ($this->settings[$settingId] === 0 || $this->settings[$settingId] === "0") {
$value = 0;
}
else {
$value = NULL;
}
}
else {
$value = NULL;
}
}
else {
$value = $this->settings[$settingId];
}
return $value;
}