public function Update350::removeVideoFileLibraryFieldTranslatability in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 modules/lightning_media_video/src/Update/Update350.php \Drupal\lightning_media_video\Update\Update350::removeVideoFileLibraryFieldTranslatability()
Makes field_media_in_library non-translatable in the video_file media type.
@update
Parameters
\Symfony\Component\Console\Style\StyleInterface $io: The I/O handler.
File
- modules/
lightning_media_video/ src/ Update/ Update350.php, line 90
Class
- Update350
- Contains optional updates targeting Lightning Media Video 3.5.0.
Namespace
Drupal\lightning_media_video\UpdateCode
public function removeVideoFileLibraryFieldTranslatability(StyleInterface $io) {
/** @var \Drupal\field\Entity\FieldConfig $field */
$field = $this->fieldStorage
->load('media.video_file.field_media_in_library');
if ($field) {
$this
->processField($io, $field);
}
}