You are here

protected function PbfSynchronize::isSynchronizedWith in Permissions by field 8

Check if a Pbf field synchronize other field.

Parameters

\Drupal\field\FieldConfigInterface $fieldConfig: The field config entity.

Return value

mixed string|bool The field id to synchronize or FALSE.

2 calls to PbfSynchronize::isSynchronizedWith()
PbfSynchronize::findPbfFieldsSynchronized in src/PbfSynchronize.php
Find pbf fields synchronized attached on an entity.
PbfSynchronize::synchronize in src/PbfSynchronize.php
Synchronize a Pbf field form entity.

File

src/PbfSynchronize.php, line 129

Class

PbfSynchronize
Class PbfSynchronize.

Namespace

Drupal\pbf

Code

protected function isSynchronizedWith(FieldConfigInterface $fieldConfig) {
  return $fieldConfig
    ->getSetting('synchronized_with') ? $fieldConfig
    ->getSetting('synchronized_with') : FALSE;
}