You are here

BlockContentTypeInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/block_content/src/BlockContentTypeInterface.php

File

core/modules/block_content/src/BlockContentTypeInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\block_content\BlockContentTypeInterface.
 */
namespace Drupal\block_content;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a custom block type entity.
 */
interface BlockContentTypeInterface extends ConfigEntityInterface {

  /**
   * Returns the description of the block type.
   *
   * @return string
   *   The description of the type of this block.
   */
  public function getDescription();

  /**
   * Returns whether a new revision should be created by default.
   *
   * @return bool
   *   TRUE if a new revision should be created by default.
   */
  public function shouldCreateNewRevision();

}

Interfaces

Namesort descending Description
BlockContentTypeInterface Provides an interface defining a custom block type entity.