public function BlazyConfigEntityBase::getOptions in Blazy 8.2
Returns the options by group, or property.
Parameters
string $group: The name of setting group: settings, etc.
string $property: The name of specific property.
Return value
mixed|array|null Available options by $group, $property, all, or NULL.
Overrides BlazyConfigEntityBaseInterface::getOptions
File
- src/
Dejavu/ BlazyConfigEntityBase.php, line 51
Class
- BlazyConfigEntityBase
- Defines the common configuration entity.
Namespace
Drupal\blazy\DejavuCode
public function getOptions($group = NULL, $property = NULL) {
if ($group) {
if (is_array($group)) {
return NestedArray::getValue($this->options, (array) $group);
}
elseif (isset($property) && isset($this->options[$group])) {
return isset($this->options[$group][$property]) ? $this->options[$group][$property] : NULL;
}
return isset($this->options[$group]) ? $this->options[$group] : NULL;
}
return $this->options;
}