Method Name Change For Understanding

This commit is contained in:
devansh bawari 2021-06-09 12:02:10 +05:30
parent 701d99e51c
commit 5b7bbb07ca
6 changed files with 9 additions and 8 deletions

View File

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

View File

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

View File

@ -324,11 +324,12 @@ class Core
}
/**
* Check requested locale in channel. If not found then set channel default locale.
* Check requested locale code in requested channel. If not found,
* then set channel default locale code.
*
* @return string
*/
public function checkRequestedLocaleInChannel()
public function checkRequestedLocaleCodeInRequestedChannel()
{
$localeCode = $this->getRequestedLocaleCode();

View File

@ -391,7 +391,7 @@ class Product extends Model implements ProductContract
return;
}
$locale = core()->checkRequestedLocaleInChannel();
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
$channel = core()->getRequestedChannelCode();
if ($attribute->value_per_channel) {

View File

@ -51,7 +51,7 @@ class ConfigurationController extends Controller
*/
public function renderMetaData()
{
$locale = core()->checkRequestedLocaleInChannel();
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
$channel = core()->getRequestedChannelCode();
@ -78,7 +78,7 @@ class ConfigurationController extends Controller
*/
public function storeMetaData($id)
{
$locale = core()->checkRequestedLocaleInChannel();
$locale = core()->checkRequestedLocaleCodeInRequestedChannel();
/* check if radio button value */
if (request()->get('slides') == "on") {

View File

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