66b0fbdc0b2644811008cdf030dcc636c0eb2e48
[yaffs-website] / web / modules / contrib / slick / src / Entity / SlickInterface.php
1 <?php
2
3 namespace Drupal\slick\Entity;
4
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
6
7 /**
8  * Provides an interface defining a Slick entity.
9  */
10 interface SlickInterface extends ConfigEntityInterface {
11
12   /**
13    * Returns the number of breakpoints.
14    *
15    * @return int
16    *   The number of the provided breakpoints.
17    */
18   public function getBreakpoints();
19
20   /**
21    * Returns the Slick skin.
22    *
23    * @return string
24    *   The name of the Slick skin.
25    */
26   public function getSkin();
27
28   /**
29    * Returns the Slick options by group, or property.
30    *
31    * @param string $group
32    *   The name of setting group: settings, responsives.
33    * @param string $property
34    *   The name of specific property: prevArrow, nexArrow.
35    *
36    * @return mixed|array|null
37    *   Available options by $group, $property, all, or NULL.
38    */
39   public function getOptions($group = NULL, $property = NULL);
40
41   /**
42    * Returns the array of slick settings.
43    *
44    * @return array
45    *   The array of settings.
46    */
47   public function getSettings();
48
49   /**
50    * Sets the array of slick settings.
51    *
52    * @param array $settings
53    *   The new array of settings.
54    */
55   public function setSettings(array $settings = []);
56
57   /**
58    * Returns the value of a slick setting.
59    *
60    * @param string $setting_name
61    *   The setting name.
62    *
63    * @return mixed
64    *   The setting value.
65    */
66   public function getSetting($setting_name);
67
68   /**
69    * Returns available slick default options under group 'settings'.
70    *
71    * @param string $group
72    *   The name of group: settings, responsives.
73    *
74    * @return array
75    *   The default settings under options.
76    */
77   public static function defaultSettings($group = 'settings');
78
79   /**
80    * Returns the group this optioset instance belongs to for easy selections.
81    *
82    * @return string
83    *   The name of the optionset group.
84    */
85   public function getGroup();
86
87   /**
88    * Returns whether to optimize the stored options, or not.
89    *
90    * @return bool
91    *   If true, the stored options will be cleaned out from defaults.
92    */
93   public function optimized();
94
95 }