Skip to content
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

Open
wants to merge 3 commits into
base: d9
Choose a base branch
from
Open

Some extra changes for D9. #3

wants to merge 3 commits into from

Conversation

waspper
Copy link

@waspper waspper commented Jul 30, 2020

No description provided.

Copy link

@andypost andypost left a 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) {

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);

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

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()];

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

Copy link

@andypost andypost Jul 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants