Fixed phpcs issues.
7 unresolved threads
7 unresolved threads
Closes #3372474
Merge request reports
Activity
added 4 commits
-
8cc17c28...a1273d0d - 3 commits from branch
project:2.0.x
- 10d7e2c5 - Merge branch '2.0.x' into '3372474-fix-the-errorswarnings'
-
8cc17c28...a1273d0d - 3 commits from branch
5 5 use Drupal\Core\Config\ConfigFactoryInterface; 6 6 use Drupal\Core\Form\ConfigFormBase; 7 7 use Drupal\Core\Form\FormStateInterface; 8 use Symfony\Component\DependencyInjection\ContainerInterface; 9 8 use Drupal\smartmenus\SmartmenusUtil; 9 use Symfony\Component\DependencyInjection\ContainerInterface; 10 10 11 11 /** 12 * Class SmartmenusSettingsForm. 12 * Class Smartmenus Settings Form. 203 * Get theme options function. 204 * 169 205 * @return array 206 * Returning array. 170 207 */ 171 208 public function getThemeOptions() { 172 209 return $this->smartmenusUtil->getAvailableMenuThemesList(); 173 210 } 174 211 175 /* 212 /** 213 * Get selected theme function. 214 * 176 215 * @return string 177 * Returns the currently selected theme for the block 216 * Returns the currently selected theme for the block 196 239 return ($this->getConfiguration())['smartmenus_orient']; 197 240 } 198 241 199 242 /** 243 * Checking if toggle is enabled function. 244 * 200 245 * @return int 201 * Returns 0,1 depending on the values of the checkbox. 246 * Returns 0,1 depending on the values of the checkbox. 202 247 */ 203 248 public function isToggleEnabled() { 204 249 return ($this->getConfiguration())['smartmenus_toggle']; 205 250 } 206 251 207 252 /** 253 * Get default theme function. 243 * Checking if toggle is enabled function. 244 * 200 245 * @return int 201 * Returns 0,1 depending on the values of the checkbox. 246 * Returns 0,1 depending on the values of the checkbox. 202 247 */ 203 248 public function isToggleEnabled() { 204 249 return ($this->getConfiguration())['smartmenus_toggle']; 205 250 } 206 251 207 252 /** 253 * Get default theme function. 254 * 208 255 * @return string 209 * Get default theme set using module config form. 256 * Get default theme set using module config form. 5 5 use Drupal\Core\StringTranslation\TranslationManager; 6 6 7 7 /** 8 * Class SmartmenusUtil 8 * Class Smart menus Util. 9 * 9 10 * @package Drupal\smartmenus 10 11 */ 11 12 class SmartmenusUtil { 12 13 13 14 /** 14 * @var TranslationManager 15 * Constructor function. 11 12 class SmartmenusUtil { 12 13 13 14 /** 14 * @var TranslationManager 15 * Constructor function. 16 * 17 * @var \Drupal\Core\StringTranslation\TranslationManager 15 18 */ 16 19 protected $translation; 17 20 18 21 /** 19 22 * SmartmenusUtil constructor. 20 * @param TranslationManager $translation 23 * 24 * @param \Drupal\Core\StringTranslation\TranslationManager $translation 25 * Translation Manager parameter. 16 19 protected $translation; 17 20 18 21 /** 19 22 * SmartmenusUtil constructor. 20 * @param TranslationManager $translation 23 * 24 * @param \Drupal\Core\StringTranslation\TranslationManager $translation 25 * Translation Manager parameter. 21 26 */ 22 27 public function __construct(TranslationManager $translation) { 23 $this->translation = $translation; 28 $this->translation = $translation; 24 29 } 25 30 26 31 /** 32 * Get available menu theme list.
Please register or sign in to reply