You are here

public function BrightcoveVideo::getCustomFieldValues in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getCustomFieldValues()
  2. 3.x src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getCustomFieldValues()

Returns the custom field values.

Return value

array Each field's value keyed by it's field ID.

Overrides BrightcoveVideoInterface::getCustomFieldValues

1 call to BrightcoveVideo::getCustomFieldValues()
BrightcoveVideo::save in src/Entity/BrightcoveVideo.php

File

src/Entity/BrightcoveVideo.php, line 505

Class

BrightcoveVideo
Defines the Brightcove Video entity.

Namespace

Drupal\brightcove\Entity

Code

public function getCustomFieldValues() {
  $value = $this
    ->get('custom_field_values')
    ->getValue();
  if (!empty($value)) {
    return $value[0];
  }
  return $value;
}