public function BrightcoveCustomField::setRequired in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveCustomField.php \Drupal\brightcove\Entity\BrightcoveCustomField::setRequired()
- 3.x src/Entity/BrightcoveCustomField.php \Drupal\brightcove\Entity\BrightcoveCustomField::setRequired()
Set the field's required value.
Parameters
bool $required: TRUE if the field needs to be set, FALSE otherwise.
Return value
\Drupal\brightcove\BrightcoveCustomFieldInterface The called Brightcove Custom Field.
Overrides BrightcoveCustomFieldInterface::setRequired
File
- src/
Entity/ BrightcoveCustomField.php, line 81
Class
- BrightcoveCustomField
- Defines the Brightcove Custom Field.
Namespace
Drupal\brightcove\EntityCode
public function setRequired($required) {
return $this
->set('required', $required);
}