public function Slick::getOptions in Slick Carousel 8
Returns the Slick options by group, or property.
Parameters
string $group: The name of setting group: settings, responsives.
string $property: The name of specific property: prevArrow, nexArrow.
Return value
mixed|array|null Available options by $group, $property, all, or NULL.
Overrides SlickInterface::getOptions
File
- src/
Entity/ Slick.php, line 140
Class
- Slick
- Defines the Slick configuration entity.
Namespace
Drupal\slick\EntityCode
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 $this->options[$group];
}
return $this->options;
}