You are here

BlockFieldItemInterface.php in Block field 8

Namespace

Drupal\block_field

File

src/BlockFieldItemInterface.php
View source
<?php

namespace Drupal\block_field;

use Drupal\Core\Field\FieldItemInterface;

/**
 * Defines an interface for the block field item.
 */
interface BlockFieldItemInterface extends FieldItemInterface {

  /**
   * Get block instance.
   *
   * @return null|\Drupal\Core\Block\BlockPluginInterface
   *   Return the block instance or NULL if the block does not exist.
   */
  public function getBlock();

}

Interfaces

Namesort descending Description
BlockFieldItemInterface Defines an interface for the block field item.