function brightcove_update_8111 in Brightcove Video Connect 8.2
Same name and namespace in other branches
- 3.x brightcove.install \brightcove_update_8111()
Change "changed time" to 1 to force update of the player entities.
File
- ./
brightcove.install, line 506 - Brightcove install file.
Code
function brightcove_update_8111(&$sandbox) {
/** @var \Drupal\brightcove\Entity\BrightcovePlayer[] $players */
$players = BrightcovePlayer::loadMultiple();
foreach ($players as $player) {
$player
->setChangedTime(1)
->save();
}
}