protected function ServicesClientPropertyCondition::isEmpty in Services Client 7.2
Check if configured property is empty.
Parameters
stdClass $entity: Drupal entity that is tested.
Return value
boolean TRUE if empty
1 call to ServicesClientPropertyCondition::isEmpty()
- ServicesClientPropertyCondition::match in include/
condition.inc - Match entity with condition.
File
- include/
condition.inc, line 93
Class
- ServicesClientPropertyCondition
- Test property condition of entity against value.
Code
protected function isEmpty($entity) {
return empty($entity->{$this->config['property']});
}