public function Matrix::isCellEmpty in Business Rules 8
Same name and namespace in other branches
- 2.x src/Util/Flowchart/Matrix.php \Drupal\business_rules\Util\Flowchart\Matrix::isCellEmpty()
Check if one cell is with no element.
Parameters
int $x: The X position.
int $y: The Y position.
Return value
bool TRUE|FALSE.
File
- src/
Util/ Flowchart/ Matrix.php, line 158
Class
- Matrix
- The matrix to handle the Business Rule flowchart.
Namespace
Drupal\business_rules\Util\FlowchartCode
public function isCellEmpty($x, $y) {
if (is_null($this->matrix[$x][$y]['element'])) {
return TRUE;
}
else {
return FALSE;
}
}