protected function LibraryItemSettingsForm::getParagraphSelectionHandler

Get an instance of the paragraph selection handler.

Return value

false|\Drupal\paragraphs\Plugin\EntityReferenceSelection\ParagraphSelection The paragraph selection handler.

2 calls to LibraryItemSettingsForm::getParagraphSelectionHandler()
LibraryItemSettingsForm::buildForm in paragraphs/modules/paragraphs_library/src/Form/LibraryItemSettingsForm.php
LibraryItemSettingsForm::submitForm in paragraphs/modules/paragraphs_library/src/Form/LibraryItemSettingsForm.php

File

paragraphs/modules/paragraphs_library/src/Form/LibraryItemSettingsForm.php, line 101

Class

LibraryItemSettingsForm
Form for Paragraphs library item settings.

Namespace

Drupal\paragraphs_library\Form

Code

protected function getParagraphSelectionHandler() {

  // Get an instance of the ParagraphsSelection handler.
  $options = [
    'target_type' => 'paragraph',
    'handler' => 'default:paragraph',
  ];
  return $this->pluginManagerEntityReferenceSelection
    ->getInstance($options);
}