public function BrightcoveCustomField::isRequired in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveCustomField.php \Drupal\brightcove\Entity\BrightcoveCustomField::isRequired()
- 3.x src/Entity/BrightcoveCustomField.php \Drupal\brightcove\Entity\BrightcoveCustomField::isRequired()
Returns whether the field is set to required or not.
Return value
bool Whether the field is required or not.
Overrides BrightcoveCustomFieldInterface::isRequired
File
- src/
Entity/ BrightcoveCustomField.php, line 74
Class
- BrightcoveCustomField
- Defines the Brightcove Custom Field.
Namespace
Drupal\brightcove\EntityCode
public function isRequired() {
return $this
->get('required')->value;
}