public function getContentData()
    {
        $data = [
            'locale' => $this->contentLocaleProvider->getCurrentLocale(),
        ];
        if (null !== $page = $this->pageHelper->getCurrent()) {
            $data['id'] = $page->getId();
        }

        return $data;
    }
public function getContentData()
    {
        $data = [
            'locale' => $this->contentLocaleProvider->getCurrentLocale(),
        ];
        if (null !== $page = $this->pageHelper->getCurrent()) {
            $data['id'] = $page->getId();
        }

        return $data;
    }
public function getContentData ( ) { $ data = [ 'locale' => $ this -> contentLocaleProvider -> getCurrentLocale ( ) , ] ; if ( null !== $ page = $ this -> pageHelper -> getCurrent ( ) ) { $ data [ 'id' ] = $ page -> getId ( ) ; } return $ data ; }
Returns the content locale.

@return array
Returns the content locale .