-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some extra changes for D9. #3
base: d9
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs split on commits for event rename and message link
Please exclude ETM rename as it just makes noise and will make hard to to make patch commitable to upstream
* The event to process. | ||
*/ | ||
public function onKernelTerminate(PostResponseEvent $event) { | ||
public function onKernelTerminate(TerminateEvent $event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please file separate issue for that, also it needs link to change record where the event was renamed
@@ -654,7 +654,7 @@ public function addDefaultAccess() { | |||
* Whether an entity type uses a separate bundle entity type. | |||
*/ | |||
protected function entityTypeHasBundles($entity_type_id) { | |||
$entity_type = $this->entityManager->getDefinition($entity_type_id); | |||
$entity_type = $this->entityTypeManager->getDefinition($entity_type_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entity manager addressed in d9-fixes
branch where I did split commits on per d-org issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically rename of the variable is useless at the moment
@@ -413,7 +413,7 @@ public function save(array $form, FormStateInterface $form_state) { | |||
|
|||
$message = ($status == SAVED_UPDATED) ? '%label event type updated.' : '%label event type added.'; | |||
$url = $event_type->toUrl(); | |||
$t_args = ['%label' => $event_type->id(), 'link' => Link::fromTextAndUrl(t('Edit'), $url)]; | |||
$t_args = ['%label' => $event_type->id(), 'link' => (Link::fromTextAndUrl($this->t('Edit'), $url))->toString()]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, also it needs separate issue (probably it exists)
Moreover it needs to rework messages as they are not translatable yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.