You are here

private function ParagraphsFrontendUIController::langcode in Paragraphs frontend ui 8

Same name and namespace in other branches
  1. 8.2 src/Controller/ParagraphsFrontendUIController.php \Drupal\paragraphs_frontend_ui\Controller\ParagraphsFrontendUIController::langcode()

Helper function to get the current langcode

5 calls to ParagraphsFrontendUIController::langcode()
ParagraphsFrontendUIController::down in src/Controller/ParagraphsFrontendUIController.php
Shift down a single paragraph.
ParagraphsFrontendUIController::duplicate in src/Controller/ParagraphsFrontendUIController.php
Duplicate a paragraph.
ParagraphsFrontendUIController::getParentData in src/Controller/ParagraphsFrontendUIController.php
Helper function to get the required data about the parent of the paragraph.
ParagraphsFrontendUIController::refreshWithAJaxResponse in src/Controller/ParagraphsFrontendUIController.php
Helper function to refresh the field with ajax.
ParagraphsFrontendUIController::up in src/Controller/ParagraphsFrontendUIController.php
Shift up a single paragraph.

File

src/Controller/ParagraphsFrontendUIController.php, line 173

Class

ParagraphsFrontendUIController
Controller for up and down actions.

Namespace

Drupal\paragraphs_frontend_ui\Controller

Code

private function langcode() {
  return $this
    ->languageManager()
    ->getCurrentLanguage()
    ->getId();
}