All Locales Method Name Changed

This commit is contained in:
devansh bawari 2021-06-09 12:11:43 +05:30
parent 5b7bbb07ca
commit dba2b7989d
4 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
@php
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
$channel = core()->getRequestedChannelCode();
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
$channelLocales = core()->getAllLocalesByRequestedChannel()['locales'];
@endphp
{!! view_render_event('bagisto.admin.catalog.product.edit.before', ['product' => $product]) !!}

View File

@ -9,7 +9,7 @@
@php
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
$channel = core()->getRequestedChannelCode();
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
$channelLocales = core()->getAllLocalesByRequestedChannel()['locales'];
@endphp
<form method="POST" action="" @submit.prevent="onSubmit" enctype="multipart/form-data">

View File

@ -275,7 +275,7 @@ class Core
*
* @return array
*/
public function getAllLocalesByRequestedChannelCode()
public function getAllLocalesByRequestedChannel()
{
static $data = [];
@ -333,7 +333,7 @@ class Core
{
$localeCode = $this->getRequestedLocaleCode();
$channelLocales = $this->getAllLocalesByRequestedChannelCode();
$channelLocales = $this->getAllLocalesByRequestedChannel();
return ! $channelLocales['locales']->contains('code', $localeCode)
? $channelLocales['channel']->default_locale->code

View File

@ -7,7 +7,7 @@
@php
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
$channel = core()->getRequestedChannelCode();
$channelLocales = core()->getAllLocalesByRequestedChannelCode()['locales'];
$channelLocales = core()->getAllLocalesByRequestedChannel()['locales'];
@endphp
@section('content')