You are here

interface BrightcoveCustomFieldInterface in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/BrightcoveCustomFieldInterface.php \Drupal\brightcove\BrightcoveCustomFieldInterface
  2. 3.x src/BrightcoveCustomFieldInterface.php \Drupal\brightcove\BrightcoveCustomFieldInterface

Provides an interface defining a Brightcove custom field.

Hierarchy

Expanded class hierarchy of BrightcoveCustomFieldInterface

All classes that implement BrightcoveCustomFieldInterface

1 file declares its use of BrightcoveCustomFieldInterface
BrightcoveCustomField.php in src/Entity/BrightcoveCustomField.php

File

src/BrightcoveCustomFieldInterface.php, line 8

Namespace

Drupal\brightcove
View source
interface BrightcoveCustomFieldInterface {

  /**
   * Returns the Brightcove ID of the Custom Field.
   *
   * @return string
   *   Brightcove's Custom Field ID.
   */
  public function getCustomFieldId();

  /**
   * Sets the Brightcove ID of the Custom Field.
   *
   * @param string $custom_field_id
   *   The ID of the Custom Field on Brightcove.
   *
   * @return \Drupal\brightcove\BrightcoveCustomFieldInterface
   *   The called Brightcove Custom Field.
   */
  public function setCustomFieldId($custom_field_id);

  /**
   * Returns enum values.
   *
   * @return array
   *   The enum values in array.
   */
  public function getEnumValues();

  /**
   * Sets the enum values.
   *
   * @param array $enum_values
   *   The enum values array.
   *
   * @return \Drupal\brightcove\BrightcoveCustomFieldInterface
   *   The called Brightcove Custom Field.
   */
  public function setEnumValues(array $enum_values);

  /**
   * Returns whether the field is set to required or not.
   *
   * @return bool
   *   Whether the field is required or not.
   */
  public function isRequired();

  /**
   * Set the field's required value.
   *
   * @param bool $required
   *   TRUE if the field needs to be set, FALSE otherwise.
   *
   * @return \Drupal\brightcove\BrightcoveCustomFieldInterface
   *   The called Brightcove Custom Field.
   */
  public function setRequired($required);

  /**
   * Returns the type of the field.
   *
   * @return string
   *   The type of the field, which can be either 'enum' or 'string'.
   */
  public function getType();

  /**
   * Sets the type of the field.
   *
   * @param string $type
   *   The type of the field, it can be either 'enum' or 'string'.
   *
   * @return \Drupal\brightcove\BrightcoveCustomFieldInterface
   *   The called Brightcove Custom Field.
   */
  public function setType($type);

}

Members

Namesort descending Modifiers Type Description Overrides
BrightcoveCustomFieldInterface::getCustomFieldId public function Returns the Brightcove ID of the Custom Field. 1
BrightcoveCustomFieldInterface::getEnumValues public function Returns enum values. 1
BrightcoveCustomFieldInterface::getType public function Returns the type of the field. 1
BrightcoveCustomFieldInterface::isRequired public function Returns whether the field is set to required or not. 1
BrightcoveCustomFieldInterface::setCustomFieldId public function Sets the Brightcove ID of the Custom Field. 1
BrightcoveCustomFieldInterface::setEnumValues public function Sets the enum values. 1
BrightcoveCustomFieldInterface::setRequired public function Set the field's required value. 1
BrightcoveCustomFieldInterface::setType public function Sets the type of the field. 1