commerce-8.x-2.8/src/Entity/CommerceContentEntityInterface.php

src/Entity/CommerceContentEntityInterface.php
<?php

namespace Drupal\commerce\Entity;

use Drupal\Core\Entity\ContentEntityInterface;

/**
 * Provides the interface for Commerce content entities.
 */
interface CommerceContentEntityInterface extends ContentEntityInterface {

  /**
   * Gets the translations of an entity reference field.
   *
   * @param string $field_name
   *   The entity reference field name.
   *
   * @return \Drupal\Core\Entity\ContentEntityInterface[]
   *   The entities.
   */
  public function getTranslatedReferencedEntities($field_name);

  /**
   * Gets the translation of an referenced entity.
   *
   * @param string $field_name
   *   The entity reference field name.
   *
   * @return \Drupal\Core\Entity\ContentEntityInterface
   *   The entity.
   */
  public function getTranslatedReferencedEntity($field_name);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc