public static function SidrTrigger::isOptionNonEmpty in Sidr: Accessible Mobile Menus 8
Same name and namespace in other branches
- 8.3 src/Plugin/Block/SidrTrigger.php \Drupal\sidr\Plugin\Block\SidrTrigger::isOptionNonEmpty()
- 8.2 src/Plugin/Block/SidrTrigger.php \Drupal\sidr\Plugin\Block\SidrTrigger::isOptionNonEmpty()
Test whether a Sidr option is not empty.
Parameters
mixed $value: The value to test.
Return value
bool TRUE if the value is non-empty.
File
- src/
Plugin/ Block/ SidrTrigger.php, line 324
Class
- SidrTrigger
- Provides a trigger button with Sidr integration.
Namespace
Drupal\sidr\Plugin\BlockCode
public static function isOptionNonEmpty($value) {
return is_bool($value) || !empty($value);
}