You are here

interface EntityExportCsvManagerInterface in Entity Export CSV 8

Interface EntityExportCsvManagerInterface.

Hierarchy

Expanded class hierarchy of EntityExportCsvManagerInterface

All classes that implement EntityExportCsvManagerInterface

3 files declare their use of EntityExportCsvManagerInterface
EntityExportCsv.php in src/Form/EntityExportCsv.php
EntityExportCsvForm.php in src/Form/EntityExportCsvForm.php
EntityExportCsvSettings.php in src/Form/EntityExportCsvSettings.php

File

src/EntityExportCsvManagerInterface.php, line 8

Namespace

Drupal\entity_export_csv
View source
interface EntityExportCsvManagerInterface {

  /**
   * The temporary export directory.
   */
  const TEMPORARY_DIRECTORY = 'temporary://entity_export_csv/export';

  /**
   * The private export directory.
   */
  const PRIVATE_DIRECTORY = 'private://entity_export_csv/export';

  /**
   * Returns objects or id of content entity types supported.
   *
   * @param bool $return_object
   *   Should we return an array of object ?
   *
   * @return array
   *   Id or Objects of entity types supported.
   */
  public function getSupportedContentEntityTypes($return_object = TRUE);

  /**
   * Returns an array of content entity types ID enabled.
   *
   * @param bool $return_label
   *   Return an array with the label as value.
   *
   * @return array
   *   An array of entity type id enabled.
   */
  public function getContentEntityTypesEnabled($return_label = FALSE);

  /**
   * Gets the bundles of an entity type.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param bool $return_label
   *   Should we return the array with the label as value ?
   *
   * @return array
   *   An array of bundles.
   */
  public function getBundlesPerEntityType($entity_type_id, $return_label = TRUE);

  /**
   * Gets the bundles enabled of an entity type.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param bool $return_label
   *   Return an array with label as value.
   *
   * @return array
   *   An array of bundles.
   */
  public function getBundlesEnabledPerEntityType($entity_type_id, $return_label = FALSE);

  /**
   * Get the fields as options given an entity type and a bundle.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param string $bundle
   *   The bundle.
   * @param bool $return_field_definition
   *   Return the field definitions or label.
   *
   * @return array|\Drupal\Core\Field\FieldDefinitionInterface[]
   *   An array of field label or field definition, keyed by the field name.
   */
  public function getBundleFields($entity_type_id, $bundle, $return_field_definition = FALSE);

  /**
   * Get the fields enabled as options given an entity type and a bundle.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param string $bundle
   *   The bundle.
   * @param bool $return_field_definition
   *   Return the field definitions or label.
   *
   * @return array|\Drupal\Core\Field\FieldDefinitionInterface[]
   *   An array of field label or field definition, keyed by the field name.
   */
  public function getBundleFieldsEnabled($entity_type_id, $bundle, $return_field_definition = FALSE);

  /**
   * Get the fields definitions given an entity type and a bundle.
   *
   * @param string $entity_type_id
   *   The entity type id.
   * @param string $bundle
   *   The bundle id.
   *
   * @return array|\Drupal\Core\Field\FieldDefinitionInterface[]
   *   An array of field label or field definition, keyed by the field name.
   */
  public function getBundleFieldDefinitions($entity_type_id, $bundle);

  /**
   * Get the entity export csv configurations.
   *
   * @param string $entity_type_id
   *   The entity type id.
   *
   * @return \Drupal\entity_export_csv\Entity\EntityExportCsvInterface[]
   *   The entity export csv config entities.
   *
   * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
   * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
   */
  public function getConfigurations($entity_type_id = '');

  /**
   * Sort the fields given the fields configuration default value order.
   *
   * @param \Drupal\Core\Field\FieldDefinitionInterface[] $fields
   *   An array of field definition keyed by the field name.
   * @param array $default_values
   *   An array of field values configuration keyed by the field name.
   */
  public function sortNaturalFields(array &$fields, array $default_values);

  /**
   * Get the delimiter options.
   *
   * @return array
   *   The delimiter options.
   */
  public function getDelimiters();

}

Members

Namesort descending Modifiers Type Description Overrides
EntityExportCsvManagerInterface::getBundleFieldDefinitions public function Get the fields definitions given an entity type and a bundle. 1
EntityExportCsvManagerInterface::getBundleFields public function Get the fields as options given an entity type and a bundle. 1
EntityExportCsvManagerInterface::getBundleFieldsEnabled public function Get the fields enabled as options given an entity type and a bundle. 1
EntityExportCsvManagerInterface::getBundlesEnabledPerEntityType public function Gets the bundles enabled of an entity type. 1
EntityExportCsvManagerInterface::getBundlesPerEntityType public function Gets the bundles of an entity type. 1
EntityExportCsvManagerInterface::getConfigurations public function Get the entity export csv configurations. 1
EntityExportCsvManagerInterface::getContentEntityTypesEnabled public function Returns an array of content entity types ID enabled. 1
EntityExportCsvManagerInterface::getDelimiters public function Get the delimiter options. 1
EntityExportCsvManagerInterface::getSupportedContentEntityTypes public function Returns objects or id of content entity types supported. 1
EntityExportCsvManagerInterface::PRIVATE_DIRECTORY constant The private export directory.
EntityExportCsvManagerInterface::sortNaturalFields public function Sort the fields given the fields configuration default value order. 1
EntityExportCsvManagerInterface::TEMPORARY_DIRECTORY constant The temporary export directory.