You are here

public function BrightcoveCustomField::isRequired in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveCustomField.php \Drupal\brightcove\Entity\BrightcoveCustomField::isRequired()
  2. 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\Entity

Code

public function isRequired() {
  return $this
    ->get('required')->value;
}