public function AmpFormTrait::heightError in Accelerated Mobile Pages (AMP) 8.3
See if selected height is invalid based on the selected layout.
Parameters
integer $height: The setting value.
Return value
bool Either TRUE or FALSE.
1 call to AmpFormTrait::heightError()
- AmpFormTrait::addToSummary in src/
AmpFormTrait.php - Update the summary.
File
- src/
AmpFormTrait.php, line 247
Class
- AmpFormTrait
- AMP Form trait.
Namespace
Drupal\ampCode
public function heightError($height, $layout) {
// If the selected layout expects a numeric value and the current value is
// empty, the height is invalid.
return empty($height) && $this
->validHeight(1, $layout) == 1;
}