You are here

FieldDefinitionProviderInterface.php in CiviCRM Entity 8.3

File

src/Entity/FieldDefinitionProviderInterface.php
View source
<?php

namespace Drupal\civicrm_entity\Entity;

interface FieldDefinitionProviderInterface {

  /**
   * Gets an entity base field definition from a CiviCRM field definition.
   *
   * @param array $civicrm_field
   *   The CiviCRM field definition.
   *
   * @return \Drupal\Core\Field\BaseFieldDefinition
   *   The base field definition.
   */
  public function getBaseFieldDefinition(array $civicrm_field);

}

Interfaces