You are here

BricksFieldItemInterface.php in Bricks​ 2.x

Namespace

Drupal\bricks

File

src/BricksFieldItemInterface.php
View source
<?php

namespace Drupal\bricks;

use Drupal\Core\Field\FieldItemInterface;
interface BricksFieldItemInterface extends FieldItemInterface {

  /**
   * @return int
   *   The depth.
   */
  public function getDepth();

  /**
   * @param $option
   *   The name of the option.
   * @param null $default
   *   The default.
   *
   * @return mixed
   *   The value of the option.
   */
  public function getOption($option, $default = NULL);

}

Interfaces