You are here

FilebrowserInterface.php in Filebrowser 8

Namespace

Drupal\filebrowser

File

lib/Drupal/filebrowser/FilebrowserInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\filebrowser\FilebrowserInterface
 */
namespace Drupal\filebrowser;

use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;

/**
 * Provides an interface defining a Filebrowser entity.
 */
interface FilebrowserInterface extends EntityInterface {

  /**
   * Returns the identifier.
   *
   * @return int
   *   The entity identifier.
   */
  public function id();

  /**
   * Returns the entity UUID (Universally Unique Identifier).
   *
   * The UUID is guaranteed to be unique and can be used to identify an entity
   * across multiple systems.
   *
   * @return string
   *   The UUID of the entity.
   */
  public function uuid();

  /**
   * Return the Value of Filebrowser Field.
   *
   * @return string
   *   The content of the field.
   */
  public function getFilebrowserField();

  /**
   * Defines the base fields of the entity type.
   *
   * @param string $entity_type
   *   Name of the entity type
   *
   * @return \Drupal\Core\Field\FieldDefinitionInterface[]
   *   An array of entity field definitions, keyed by field name.
   */
  public static function baseFieldDefinitions(EntityTypeInterface $entity_type);

}

Interfaces

Namesort descending Description
FilebrowserInterface Provides an interface defining a Filebrowser entity.