Delete opdavies_talks.install
This commit is contained in:
parent
f0caa8fd71
commit
1706502db3
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Install, update and uninstall functions for opdavies_talks.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Drupal\opdavies_talks\Repository\TalkRepository;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set talk type for all existing talks.
|
|
||||||
*/
|
|
||||||
function opdavies_talks_update_8001(): void {
|
|
||||||
$talkRepository = \Drupal::service(TalkRepository::class);
|
|
||||||
|
|
||||||
foreach ($talkRepository->getAll() as $talk) {
|
|
||||||
$talk->set('field_type', 'talk');
|
|
||||||
$talk->save();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue