function TypedDataLanguageRelationshipDeriver::generateDerivativeDefinition

Same name in other branches
  1. 4.0.x src/Plugin/Deriver/TypedDataLanguageRelationshipDeriver.php \Drupal\ctools\Plugin\Deriver\TypedDataLanguageRelationshipDeriver::generateDerivativeDefinition()

Overrides TypedDataRelationshipDeriver::generateDerivativeDefinition

File

src/Plugin/Deriver/TypedDataLanguageRelationshipDeriver.php, line 23

Class

TypedDataLanguageRelationshipDeriver

Namespace

Drupal\ctools\Plugin\Deriver

Code

protected function generateDerivativeDefinition($base_plugin_definition, $data_type_id, $data_type_definition, DataDefinitionInterface $base_definition, $property_name, DataDefinitionInterface $property_definition) {
    if (method_exists($property_definition, 'getType') && $property_definition->getType() == 'language') {
        parent::generateDerivativeDefinition($base_plugin_definition, $data_type_id, $data_type_definition, $base_definition, $property_name, $property_definition);
    }
}