You are here

protected function PbfSynchronize::isSynchronizedBy in Permissions by field 8

Check if a Pbf field is synchronized by other field and can synchronize it.

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::isSynchronizedBy()
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 142

Class

PbfSynchronize
Class PbfSynchronize.

Namespace

Drupal\pbf

Code

protected function isSynchronizedBy(FieldConfigInterface $fieldConfig) {
  return $fieldConfig
    ->getSetting('synchronized_by') && $fieldConfig
    ->getSetting('synchronized_from_target') ? $fieldConfig
    ->getSetting('synchronized_by') : FALSE;
}