You are here

public static function SidrTrigger::isOptionNonEmpty in Sidr: Accessible Mobile Menus 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/Block/SidrTrigger.php \Drupal\sidr\Plugin\Block\SidrTrigger::isOptionNonEmpty()
  2. 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 300

Class

SidrTrigger
Provides a trigger button with Sidr integration.

Namespace

Drupal\sidr\Plugin\Block

Code

public static function isOptionNonEmpty($value) {
  return is_bool($value) || !empty($value);
}