3 namespace Drupal\slick\Entity;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining a Slick entity.
10 interface SlickInterface extends ConfigEntityInterface {
13 * Returns the number of breakpoints.
16 * The number of the provided breakpoints.
18 public function getBreakpoints();
21 * Returns the Slick skin.
24 * The name of the Slick skin.
26 public function getSkin();
29 * Returns the Slick options by group, or property.
31 * @param string $group
32 * The name of setting group: settings, responsives.
33 * @param string $property
34 * The name of specific property: prevArrow, nexArrow.
36 * @return mixed|array|null
37 * Available options by $group, $property, all, or NULL.
39 public function getOptions($group = NULL, $property = NULL);
42 * Returns the array of slick settings.
45 * The array of settings.
47 public function getSettings();
50 * Sets the array of slick settings.
52 * @param array $settings
53 * The new array of settings.
55 public function setSettings(array $settings = []);
58 * Returns the value of a slick setting.
60 * @param string $setting_name
66 public function getSetting($setting_name);
69 * Returns available slick default options under group 'settings'.
71 * @param string $group
72 * The name of group: settings, responsives.
75 * The default settings under options.
77 public static function defaultSettings($group = 'settings');
80 * Returns the group this optioset instance belongs to for easy selections.
83 * The name of the optionset group.
85 public function getGroup();
88 * Returns whether to optimize the stored options, or not.
91 * If true, the stored options will be cleaned out from defaults.
93 public function optimized();