Oliver Davies
cbe60209e6
- Rename `opdavies_blog` to `blog`. - Rename `opdavies_blog_test` to `blog_test`. - Rename `opdavies_talks` to `talks`. - Rename `opdavies_talks_test` to `talks_test`. The files within the directories haven't changed, so there is no breaking change caused by renaming the directories. Please enter the commit message for your changes. Lines starting
18 lines
356 B
Plaintext
18 lines
356 B
Plaintext
<?php
|
|
|
|
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();
|
|
}
|
|
}
|