public function StickyManager::getJsSettings in Sticky 8
Same name and namespace in other branches
- 2.0.x src/Manager/StickyManager.php \Drupal\sticky\Manager\StickyManager::getJsSettings()
Returns JS settings.
Return value
array
File
- src/
Manager/ StickyManager.php, line 24
Class
- StickyManager
- Class StickyManager
Namespace
Drupal\sticky\ManagerCode
public function getJsSettings() {
return [
'selector' => $this->config
->get('selector'),
'top_spacing' => $this->config
->get('top_spacing'),
'bottom_spacing' => $this->config
->get('bottom_spacing'),
'class_name' => $this->config
->get('class_name'),
'wrapper_class_name' => $this->config
->get('wrapper_class_name'),
'center' => $this->config
->get('center'),
'get_width_from' => $this->config
->get('get_width_from'),
'width_from_wrapper' => $this->config
->get('width_from_wrapper'),
'responsive_width' => $this->config
->get('responsive_width'),
'z_index' => $this->config
->get('z_index'),
];
}