public function Update350::removeVideoLibraryFieldTranslatability 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::removeVideoLibraryFieldTranslatability()
Makes field_media_in_library non-translatable in the video media type.
@update
Parameters
\Symfony\Component\Console\Style\StyleInterface $io: The I/O handler.
File
- modules/
lightning_media_video/ src/ Update/ Update350.php, line 74
Class
- Update350
- Contains optional updates targeting Lightning Media Video 3.5.0.
Namespace
Drupal\lightning_media_video\UpdateCode
public function removeVideoLibraryFieldTranslatability(StyleInterface $io) {
/** @var \Drupal\field\Entity\FieldConfig $field */
$field = $this->fieldStorage
->load('media.video.field_media_in_library');
if ($field) {
$this
->processField($io, $field);
}
}