You are here

ParagraphsSetInterface.php in Paragraphs Sets 8.2

Same filename and directory in other branches
  1. 8 src/ParagraphsSetInterface.php

File

src/ParagraphsSetInterface.php
View source
<?php

namespace Drupal\paragraphs_sets;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a ParagraphsSet entity.
 */
interface ParagraphsSetInterface extends ConfigEntityInterface {

  /**
   * Returns the icon file entity.
   *
   * @return \Drupal\file\FileInterface|bool
   *   The icon's file entity or FALSE if icon does not exist.
   */
  public function getIconFile();

  /**
   * Returns the icon's URL.
   *
   * @return string|bool
   *   The icon's URL or FALSE if icon does not exits.
   */
  public function getIconUrl();

  /**
   * Return the label of the Paragraph Set.
   *
   * @return string
   *   The label of the Paragraph Set.
   */
  public function getLabel();

  /**
   * Gets the description.
   *
   * @return string
   *   The description of the Paragraph Set.
   */
  public function getDescription();

  /**
   * Get the list of paragraphs in the set.
   *
   * @return array
   *   The paragraphs data of the Paragraph Set.
   */
  public function getParagraphs();

}

Interfaces

Namesort descending Description
ParagraphsSetInterface Provides an interface defining a ParagraphsSet entity.