You are here

protected function MultipleValuesGenerator::fieldIsNotComputed in Computed Field 3.x

Determines if a field is computed or not.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Return value

bool The result.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to MultipleValuesGenerator::fieldIsNotComputed()
MultipleValuesGenerator::generateMissingValues in src/MultipleValuesGenerator.php
Generates missing computed-field values in multi-valued computed fields.

File

src/MultipleValuesGenerator.php, line 127

Class

MultipleValuesGenerator
Service for generating missing values for multi-valued computed fields.

Namespace

Drupal\computed_field

Code

protected function fieldIsNotComputed(FieldDefinitionInterface $field_definition) {
  return $this->fieldTypePluginManager
    ->getDefinition($field_definition
    ->getType())['provider'] != "computed_field";
}