public function SlickBase::toArray in Slick Carousel 7.3
Returns an array of all property values.
Return value
mixed[] An array of property values, keyed by property name.
1 call to SlickBase::toArray()
- SlickBase::save in src/
Entity/ SlickBase.php - Saves the optionset to database.
File
- src/
Entity/ SlickBase.php, line 246
Class
- SlickBase
- Defines the Slick configuration entity.
Namespace
Drupal\slick\EntityCode
public function toArray() {
$values = [];
foreach (self::defaultProperties() as $key => $ignore) {
$values[$key] = $this->{$key};
}
return $values;
}