You are here

public function PreparedAttribute::isRequired in Commerce Core 8.2

Gets whether the attribute is required.

Return value

bool TRUE if the attribute is required, FALSE otherwise.

File

modules/product/src/PreparedAttribute.php, line 106

Class

PreparedAttribute
Represents a prepared attribute.

Namespace

Drupal\commerce_product

Code

public function isRequired() : bool {
  return $this->required;
}