You are here

protected function ParagraphFormHelperTrait::lineageInspector in Paragraphs Edit 8.2

Returns the lineage inspector service.

Return value

\Drupal\paragraphs_edit\ParagraphLineageInspector The lineage inspector service data.

File

src/ParagraphFormHelperTrait.php, line 25

Class

ParagraphFormHelperTrait
Provides a helper for paragraph forms.

Namespace

Drupal\paragraphs_edit

Code

protected function lineageInspector() {
  if (!isset($this->lineageInspector)) {
    $this->lineageInspector = \Drupal::service('paragraphs_edit.lineage.inspector');
  }
  return $this->lineageInspector;
}