You are here

public function QuickNodeCloneEntityFormBuilder::excludeParagraphField in Quick Node Clone 8

Check whether to exclude the paragraph field.

Parameters

string $field_name: The field name.

string $bundle_name: The bundle name.

Return value

bool|null TRUE or FALSE depending on config setting, or NULL if config not found.

1 call to QuickNodeCloneEntityFormBuilder::excludeParagraphField()
QuickNodeCloneEntityFormBuilder::cloneParagraphs in src/Entity/QuickNodeCloneEntityFormBuilder.php
Clone the paragraphs of a node.

File

src/Entity/QuickNodeCloneEntityFormBuilder.php, line 260

Class

QuickNodeCloneEntityFormBuilder
Builds entity forms.

Namespace

Drupal\quick_node_clone\Entity

Code

public function excludeParagraphField($field_name, $bundle_name) {
  $config_name = 'exclude.paragraph.' . $bundle_name;
  if ($exclude_fields = $this
    ->getConfigSettings($config_name)) {
    return in_array($field_name, $exclude_fields);
  }
}