You are here

private function Pbf::getTargetBundles in Permissions by field 8

Get the target bundle of a Field Pbf.

Parameters

\Drupal\Core\Field\FieldConfigInterface $field: The field instance on which we want the target bundles.

Return value

array The list of target bundles.

1 call to Pbf::getTargetBundles()
Pbf::getPbfEligibleFields in src/Plugin/Field/FieldType/Pbf.php
Return the pbf fields eligible to be synchronized.

File

src/Plugin/Field/FieldType/Pbf.php, line 333

Class

Pbf
Plugin implementation of the 'pbf' field type.

Namespace

Drupal\pbf\Plugin\Field\FieldType

Code

private function getTargetBundles(FieldConfigInterface $field) {
  $target_bundles = [];
  $settings = $field
    ->getSettings();
  if (isset($settings['handler_settings']['target_bundles'])) {
    $target_bundles = $settings['handler_settings']['target_bundles'];
  }
  return $target_bundles;
}